style(modules/web): lint code with eslint
This commit is contained in:
@@ -2,7 +2,7 @@ import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "@/router";
|
||||
import store from "@/store";
|
||||
import "element-plus/theme-chalk/dark/css-vars.css"
|
||||
import "element-plus/theme-chalk/dark/css-vars.css";
|
||||
|
||||
createApp(App).use(store).use(router).mount("#app");
|
||||
|
||||
@@ -10,12 +10,12 @@ createApp(App).use(store).use(router).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");
|
||||
}
|
||||
)
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user