闫增涛
2024-10-12 27cb2a0c8d0c5414821e92782bc8d133db856d0c
src/assets/js/config.js
@@ -1,17 +1,20 @@
import axios from "axios";
export const resourceCtx = "http://182.92.203.7:3007/books/resource/"; // 资源请求地址
// export const resourceCtx = "https://jsek.bnuic.com/books/resource/"; // 资源请求地址
export let activeBook = {}; // 资源请求地址
export let goodsStore = "";
// 请求教材配置信息
const getBookConfig = async (bookId) => {
const getBookConfig = async (ctx) => {
  const response = await axios.get(
    resourceCtx + (bookId ? bookId : "1") + "/bookConfig.json"
    ctx + "/bookConfig.json"
  );
  return response.data;
};
export const appId = 3;
export const requestTimeOut = 300000; // 请求超时时间
export const tokenKey = "jsek-token";
// export const tokenKey = "jsek-token";
export const tokenKey = "token"
const config = {
  resourceCtx,