fix(web): fix issue of tags component flickering when fisrt paint night theme bookshelf

commit caeb54e213 unfixed
This commit is contained in:
Xwite
2024-10-03 11:42:25 +08:00
parent 435a66cd96
commit 4b849bcc3b
4 changed files with 276 additions and 232 deletions
-9
View File
@@ -112,14 +112,5 @@ export const useBookStore = defineStore("book", {
if (!this.bookProgress) return Promise.resolve();
return API.saveBookProgress(this.bookProgress);
},
//读取阅读界面配置以初始化夜间模式 以免初次加载书架页面时闪屏
async loadReadConfig() {
return API.getReadConfig()
.then((response) => response.data)
.then(
({ isSuccess, data }) =>
isSuccess && this.setConfig(JSON.parse(data)),
);
},
},
});