src/assets/js/config.js
@@ -6,6 +6,14 @@ const response = await axios.get(ctx + "/bookConfig.json"); return response.data; }; // 请求教材资源信息 const getBookResources = async (ctx) => { const response = await axios.get(ctx + "/bookResources.json"); return response.data; }; export const appId = 0; export const requestTimeOut = 300000; // 请求超时时间 export const tokenKey = "token"; // export const tokenKey = "website-front-token" @@ -15,6 +23,8 @@ requestTimeOut, tokenKey, goodsStore, appId, getBookConfig, getBookResources, }; export default config;