This commit is contained in:
expdsn 2024-09-29 16:16:53 +08:00
parent 5dddc19d76
commit 81284f6799
3 changed files with 5 additions and 3 deletions

View File

@ -61,6 +61,7 @@ export default defineComponent(() => {
<Button type="primary" icon={<SwapOutlined />} <Button type="primary" icon={<SwapOutlined />}
onClick={()=> { onClick={()=> {
router.path = '' router.path = ''
}}> }}>
</Button> </Button>

View File

@ -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>
) )
} }

View File

@ -1,7 +1,7 @@
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
import { ref } from 'vue' import { ref } 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', () => {