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 />}
onClick={()=> {
router.path = ''
}}>
</Button>

View File

@ -3,8 +3,8 @@ import { defineComponent } from "vue";
export default defineComponent({
setup() {
return (
<div>
<div class={"w-full h-full bg-red-300"}>
background
</div>
)
}

View File

@ -1,7 +1,7 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
export type GlobalStr = 'search' | 'block' | 'adder' | 'login'
export type GlobalStr = 'search' | 'block' | 'adder' | 'login' | 'background'
export type SettingStr =
| 'user'
| 'background'
@ -13,6 +13,7 @@ export type SettingStr =
| 'dock'
| 'reset'
| 'fallback'
export type CustomStr = 'background'
export type RouteStr = '' | `widget-${string}` | `global-${GlobalStr}` | `settings-${SettingStr}`
export default defineStore('router', () => {