fix(modules/web): 重构阅读API;封面图片优先使用源站资源
- 添加图片代理接口API;API地址测试(3s超时)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user