From 7d7744fe006714f6be0341d03d4de9b1e90d775d Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期五, 23 五月 2025 22:45:09 +0800 Subject: [PATCH] 5.23 婴幼儿游戏活动实施(wb) --- src/assets/js/config.js | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/assets/js/config.js b/src/assets/js/config.js index 2696dba..4a85c7b 100644 --- a/src/assets/js/config.js +++ b/src/assets/js/config.js @@ -1,27 +1,23 @@ import axios from "axios"; -export const resourceCtx = "http://182.92.203.7:3007/books/resource/"; // 璧勬簮璇锋眰鍦板潃 export let activeBook = {}; // 璧勬簮璇锋眰鍦板潃 export let goodsStore = ""; // 璇锋眰鏁欐潗閰嶇疆淇℃伅 -const getBookConfig = async (bookId) => { - const response = await axios.get( - resourceCtx + (bookId ? bookId : "1") + "/bookConfig.json" - ); - activeBook = response.data; - goodsStore = response.data.storeRefcode; +const getBookConfig = async (ctx) => { + const response = await axios.get(ctx + "/bookConfig.json"); return response.data; }; -export const appId = 3; + +export const appId = 0; export const requestTimeOut = 300000; // 璇锋眰瓒呮椂鏃堕棿 -export const tokenKey = "jsek-token"; +export const tokenKey = "token"; +// export const tokenKey = "website-front-token" const config = { - resourceCtx, activeBook, requestTimeOut, tokenKey, goodsStore, appId, - getBookConfig + getBookConfig, }; export default config; -- Gitblit v1.9.1