feat(app.ts): 添加state变量language和size
This commit is contained in:
@@ -14,7 +14,9 @@ export interface AppState {
|
||||
sidebar: {
|
||||
opened: boolean,
|
||||
withoutAnimation: boolean
|
||||
}
|
||||
},
|
||||
language:string,
|
||||
size:string
|
||||
}
|
||||
|
||||
export interface SettingState {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user