style(modules/web): lint code with eslint

This commit is contained in:
Xwite
2024-10-03 10:16:25 +08:00
parent 2b835c0ba4
commit ad27bd8e1f
16 changed files with 195 additions and 196 deletions
+8 -8
View File
@@ -10,12 +10,12 @@ createApp(App).use(store).use(bookRouter).mount("#app");
useBookStore().loadReadConfig();
// 同步Element PLUS 夜间模式
watch(
() => useBookStore().isNight,
(isNight) => {
if (isNight) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
() => useBookStore().isNight,
(isNight) => {
if (isNight) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
)
},
);