Compare commits
5 Commits
ca3e3dec19
...
68ab5c9a4e
| Author | SHA1 | Date |
|---|---|---|
|
|
68ab5c9a4e | |
|
|
8610ae6f57 | |
|
|
81284f6799 | |
|
|
5dddc19d76 | |
|
|
1eb9a6e0d6 |
|
|
@ -60,8 +60,8 @@ export default defineComponent(() => {
|
||||||
<div class="flex justify-between items-center py-4">
|
<div class="flex justify-between items-center py-4">
|
||||||
<Button type="primary" icon={<SwapOutlined />}
|
<Button type="primary" icon={<SwapOutlined />}
|
||||||
onClick={()=> {
|
onClick={()=> {
|
||||||
router.path = ''
|
router.go ('')
|
||||||
router.path = 's2-background'
|
|
||||||
}}>
|
}}>
|
||||||
更换壁纸
|
更换壁纸
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import { defineComponent } from "vue";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div class={"w-full h-full bg-red-300"}>
|
||||||
|
background
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,6 @@ export default defineComponent(() => {
|
||||||
<Transition name="settings">
|
<Transition name="settings">
|
||||||
{show.value && (
|
{show.value && (
|
||||||
<div class="absolute left-6 bottom-20 w-[600px] h-[480px] rounded-lg overflow-hidden shadow-2xl flex">
|
<div class="absolute left-6 bottom-20 w-[600px] h-[480px] rounded-lg overflow-hidden shadow-2xl flex">
|
||||||
{router.path.startsWith('settings-') ? (
|
|
||||||
<>
|
|
||||||
<div class="w-[200px] p-4 h-full bg-white/60 backdrop-blur flex flex-col">
|
<div class="w-[200px] p-4 h-full bg-white/60 backdrop-blur flex flex-col">
|
||||||
<div
|
<div
|
||||||
class={
|
class={
|
||||||
|
|
@ -79,14 +77,9 @@ export default defineComponent(() => {
|
||||||
<SettingsTab label="问题反馈" path="settings-fallback" />
|
<SettingsTab label="问题反馈" path="settings-fallback" />
|
||||||
</div>
|
</div>
|
||||||
<Content />
|
<Content />
|
||||||
</>
|
|
||||||
) : router.path.startsWith('s2') ? (
|
|
||||||
<>
|
|
||||||
<div class="w-full h-full flex justify-center items-center bg-red-300"></div>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
''
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { computed, ref, watch } from 'vue'
|
import { computed, ref, watch } from 'vue'
|
||||||
|
|
||||||
export type GlobalStr = 'search' | 'block' | 'adder' | 'login'
|
export type GlobalStr = 'search' | 'block' | 'adder' | 'login' | 'background'
|
||||||
export type SettingStr =
|
export type SettingStr =
|
||||||
| 'user'
|
| 'user'
|
||||||
| 'background'
|
| 'background'
|
||||||
|
|
@ -13,6 +13,7 @@ export type SettingStr =
|
||||||
| 'dock'
|
| 'dock'
|
||||||
| 'reset'
|
| 'reset'
|
||||||
| 'fallback'
|
| 'fallback'
|
||||||
|
export type CustomStr = 'background'
|
||||||
export type RouteStr = '' | `widget-${string}` | `global-${GlobalStr}` | `settings-${SettingStr}`
|
export type RouteStr = '' | `widget-${string}` | `global-${GlobalStr}` | `settings-${SettingStr}`
|
||||||
|
|
||||||
export default defineStore('router', () => {
|
export default defineStore('router', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue