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