From d699fe9586830b5fefe53038c8b5b6b2dbb4ac90 Mon Sep 17 00:00:00 2001 From: user1 <10901603+no-distractions1@user.noreply.gitee.com> Date: 星期四, 13 六月 2024 09:36:14 +0800 Subject: [PATCH] drama --- src/assets/js/config.js | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/assets/js/config.js b/src/assets/js/config.js index 2696dba..889a5ea 100644 --- a/src/assets/js/config.js +++ b/src/assets/js/config.js @@ -1,19 +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" ); - activeBook = response.data; - goodsStore = response.data.storeRefcode; 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, -- Gitblit v1.9.1