From 39eee2c133b958e789513835f2aeda9acbc5bb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sat, 8 Jan 2022 18:42:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(app.ts):=20=E6=B7=BB=E5=8A=A0state?= =?UTF-8?q?=E5=8F=98=E9=87=8Flanguage=E5=92=8Csize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/interface.ts | 4 +++- src/store/modules/app.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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() {