fix(web): fix issue of tags component flickering when fisrt paint night theme bookshelf
This commit is contained in:
@@ -6,6 +6,8 @@ import "element-plus/theme-chalk/dark/css-vars.css"
|
||||
|
||||
createApp(App).use(store).use(router).mount("#app");
|
||||
|
||||
//读取阅读界面设置
|
||||
useBookStore().loadReadConfig();
|
||||
// 书架 同步Element PLUS 夜间模式
|
||||
watch(
|
||||
() => useBookStore().isNight,
|
||||
@@ -16,4 +18,4 @@ watch(
|
||||
document.documentElement.classList.remove("dark");
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user