fix(modules/web): 重构阅读API;封面图片优先使用源站资源

- 添加图片代理接口API;API地址测试(3s超时)
This commit is contained in:
Xwite
2024-09-29 18:07:39 +08:00
parent ed5d13f455
commit bf91a6f206
12 changed files with 222 additions and 176 deletions
+4 -6
View File
@@ -49,6 +49,9 @@ export const useBookStore = defineStore("book", {
durChapterTitle: title,
};
},
theme: (state) => {
return state.config.theme
},
},
actions: {
setConnectStatus(connectStatus) {
@@ -57,11 +60,6 @@ export const useBookStore = defineStore("book", {
setConnectType(connectType) {
this.connectType = connectType;
},
resetConnect() {
this.connectStatus = "正在连接后端服务器……";
this.connectType = "";
this.clearBooks();
},
setNewConnect(newConnect) {
this.newConnect = newConnect;
},
@@ -84,7 +82,7 @@ export const useBookStore = defineStore("book", {
this.readingBook = readingBook;
},
setConfig(config) {
Object.assign(this.config, config);
this.config = Object.assign({}, this.config, config);
},
setReadSettingsVisible(visible) {
this.readSettingsVisible = visible;