style(modules/web): lint code with eslint
This commit is contained in:
1 parent
6578660b26
commit
8b7e33a32e
16 files changed
+195
-196
No files matched your search
@@ -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)),
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user