| | |
| | | import axios from "axios"; |
| | | export let activeBook = {}; // 资源请求地址 |
| | | |
| | | // export let activeBook = { |
| | | // name: "aviationPassengerTransport6th", |
| | | // rootCmsItemId: "86281", |
| | | // storeRefcode: "defaultGoodsStore1", |
| | | // bookId: "5033", |
| | | // bookName: "民航旅客运输(第6版)", |
| | | // }; |
| | | |
| | | export let goodsStore = ""; |
| | | // 请求教材配置信息 |
| | | const getBookConfig = async (ctx) => { |
| | | const response = await axios.get(ctx + "/bookConfig.json"); |
| | | return response.data; |
| | | }; |
| | | |
| | | export const appId = 0; |
| | | export const requestTimeOut = 300000; // 请求超时时间 |
| | | // export const tokenKey = "token"; |
| | | export const tokenKey = "website-front-token" |
| | | export const tokenKey = "token"; |
| | | // export const tokenKey = "website-front-token" |
| | | |
| | | const config = { |
| | | activeBook, |
| | | requestTimeOut, |
| | | tokenKey, |
| | | goodsStore, |
| | | getBookConfig |
| | | appId, |
| | | getBookConfig, |
| | | }; |
| | | export default config; |