feat: update

This commit is contained in:
xiaoxian521
2021-10-29 13:48:37 +08:00
parent 02f2cd9747
commit 71bd7e89d4
3 changed files with 5 additions and 5 deletions

View File

@@ -23,15 +23,15 @@ export const injectResponsiveStorage = (app: App, config: ServerConfigs) => {
locale: {
type: Object,
default: Storage.getData(undefined, "locale") ?? {
locale: config.Locale
locale: config.Locale ?? "zh"
}
},
// layout模式以及主题
layout: {
type: Object,
default: Storage.getData(undefined, "layout") ?? {
layout: config.Layout,
theme: config.Theme
layout: config.Layout ?? "vertical",
theme: config.Theme ?? "default"
}
}
});