fix(modules/web): 重构阅读API;封面图片优先使用源站资源
- 添加图片代理接口API;API地址测试(3s超时)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
@@ -4,5 +4,3 @@ import bookRouter from "@/router";
|
||||
import store from "@/store";
|
||||
|
||||
createApp(App).use(store).use(bookRouter).mount("#app");
|
||||
|
||||
import("./config");
|
||||
|
||||
Reference in New Issue
Block a user