From 81284f6799edb8def458b65d58dfe11cc4f3a8a0 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Sun, 29 Sep 2024 16:16:53 +0800 Subject: [PATCH] save --- src/layout/background/BackgroundPage.tsx | 1 + src/layout/background/BackgroundSwtich.tsx | 4 ++-- src/useRouterStore.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layout/background/BackgroundPage.tsx b/src/layout/background/BackgroundPage.tsx index 3b6c933..f6a94c6 100644 --- a/src/layout/background/BackgroundPage.tsx +++ b/src/layout/background/BackgroundPage.tsx @@ -61,6 +61,7 @@ export default defineComponent(() => { diff --git a/src/layout/background/BackgroundSwtich.tsx b/src/layout/background/BackgroundSwtich.tsx index 5acaab9..e640811 100644 --- a/src/layout/background/BackgroundSwtich.tsx +++ b/src/layout/background/BackgroundSwtich.tsx @@ -3,8 +3,8 @@ import { defineComponent } from "vue"; export default defineComponent({ setup() { return ( -
- +
+ background
) } diff --git a/src/useRouterStore.ts b/src/useRouterStore.ts index eb3124d..ea7a183 100644 --- a/src/useRouterStore.ts +++ b/src/useRouterStore.ts @@ -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', () => {