Spaces:
Sleeping
Sleeping
chokiproai
commited on
Commit
•
0ed80ee
1
Parent(s):
3424203
Upload helper.ts
Browse files
src/store/modules/app/helper.ts
CHANGED
@@ -4,7 +4,7 @@ const LOCAL_NAME = 'appSetting'
|
|
4 |
|
5 |
export type Theme = 'light' | 'dark' | 'auto'
|
6 |
|
7 |
-
export type Language = '
|
8 |
|
9 |
export interface AppState {
|
10 |
siderCollapsed: boolean
|
@@ -13,7 +13,7 @@ export interface AppState {
|
|
13 |
}
|
14 |
|
15 |
export function defaultSetting(): AppState {
|
16 |
-
return { siderCollapsed: false, theme: 'light', language: '
|
17 |
}
|
18 |
|
19 |
export function getLocalSetting(): AppState {
|
|
|
4 |
|
5 |
export type Theme = 'light' | 'dark' | 'auto'
|
6 |
|
7 |
+
export type Language = 'en-US' | 'vi-VN'
|
8 |
|
9 |
export interface AppState {
|
10 |
siderCollapsed: boolean
|
|
|
13 |
}
|
14 |
|
15 |
export function defaultSetting(): AppState {
|
16 |
+
return { siderCollapsed: false, theme: 'light', language: 'en-US' }
|
17 |
}
|
18 |
|
19 |
export function getLocalSetting(): AppState {
|