feat(app.ts): 添加state变量language和size

This commit is contained in:
郝先瑞
2022-01-08 18:42:10 +08:00
parent 075c7f88ba
commit 39eee2c133
2 changed files with 6 additions and 2 deletions

View File

@@ -14,7 +14,9 @@ export interface AppState {
sidebar: { sidebar: {
opened: boolean, opened: boolean,
withoutAnimation: boolean withoutAnimation: boolean
} },
language:string,
size:string
} }
export interface SettingState { export interface SettingState {

View File

@@ -10,7 +10,9 @@ export const useAppStore = defineStore({
sidebar: { sidebar: {
opened: Local.get('sidebarStatus') ? !!+Local.get('sidebarStatus') : true, opened: Local.get('sidebarStatus') ? !!+Local.get('sidebarStatus') : true,
withoutAnimation: false withoutAnimation: false
} },
language:'zh',
size:'medium'
}), }),
actions: { actions: {
toggleSidebar() { toggleSidebar() {