style(modules/web): lint code with eslint

This commit is contained in:
Xwite
2024-10-03 10:16:25 +08:00
parent 6578660b26
commit 8b7e33a32e
16 changed files with 195 additions and 196 deletions
+8 -6
View File
@@ -52,7 +52,7 @@ export const useBookStore = defineStore("book", {
};
},
theme: (state) => {
return state.config.theme
return state.config.theme;
},
isNight: (state) => state.config.theme == 6,
},
@@ -114,10 +114,12 @@ export const useBookStore = defineStore("book", {
},
//读取阅读界面配置以初始化夜间模式 以免初次加载书架页面时闪屏
async loadReadConfig() {
return API.getReadConfig().then(response => response.data)
.then(({isSuccess, data}) =>
isSuccess && this.setConfig(JSON.parse(data))
)
}
return API.getReadConfig()
.then((response) => response.data)
.then(
({ isSuccess, data }) =>
isSuccess && this.setConfig(JSON.parse(data)),
);
},
},
});