diff --git a/src/store/interface.ts b/src/store/interface.ts index 59684c61..352e6fa1 100644 --- a/src/store/interface.ts +++ b/src/store/interface.ts @@ -14,7 +14,9 @@ export interface AppState { sidebar: { opened: boolean, withoutAnimation: boolean - } + }, + language:string, + size:string } export interface SettingState { diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 83be8d53..583b7bf2 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -10,7 +10,9 @@ export const useAppStore = defineStore({ sidebar: { opened: Local.get('sidebarStatus') ? !!+Local.get('sidebarStatus') : true, withoutAnimation: false - } + }, + language:'zh', + size:'medium' }), actions: { toggleSidebar() {