feat(app.ts): 添加state变量language和size
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user