1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| import axios from "axios";
| export const resourceCtx = "http://182.92.203.7:3007/books/resource/1"; // 资源请求地址
| export let activeBook = {}; // 资源请求地址
| export let goodsStore = "";
| // 请求教材配置信息
| const getBookConfig = async () => {
| const response = await axios.get(resourceCtx + "/bookConfig.json");
| activeBook = response.data;
| goodsStore = response.data.storeRefcode;
| return response.data;
| };
| export const appId = 3;
| export const requestTimeOut = 300000; // 请求超时时间
| export const tokenKey = "jsek-token";
|
| const config = {
| resourceCtx,
| activeBook,
| requestTimeOut,
| tokenKey,
| goodsStore,
| appId,
| getBookConfig,
| };
| export default config;
|
|