fix(web): fix issue of tags component flickering when fisrt paint night theme bookshelf
commit caeb54e213 unfixed
This commit is contained in:
1 parent
435a66cd96
commit
4b849bcc3b
4 files changed
+276
-232
No files matched your search
@@ -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)),
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user