fix(store): 微改

This commit is contained in:
BTMuli
2023-03-22 15:59:06 +08:00
parent f7b2a6cbb7
commit 95203fb86e
2 changed files with 12 additions and 2 deletions

View File

@@ -46,6 +46,10 @@ const useAppStore = defineStore({
actions: {
// 初始化配置
async init() {
// 防止数据清空
if (this.sidebar === undefined) {
this.sidebar = true;
}
// 初始化加载状态
this.loading = false;
// 初始化咨讯页渲染模式