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
-17
View File
@@ -1,17 +0,0 @@
import API from "@api";
import { useBookStore } from "@/store";
import "@/assets/bookshelf.css";
/**
* 加载配置
*/
API.getReadConfig().then((res) => {
var data = res.data.data;
if (data) {
const bookStore = useBookStore();
let config = JSON.parse(data);
let defaultConfig = bookStore.config;
config = Object.assign(defaultConfig, config);
bookStore.setConfig(config);
}
});
-2
View File
@@ -4,5 +4,3 @@ import bookRouter from "@/router";
import store from "@/store";
createApp(App).use(store).use(bookRouter).mount("#app");
import("./config");