From 389c9f0a9ce5b402e0dfc24c32e44d09e85af088 Mon Sep 17 00:00:00 2001 From: luyisha Date: Fri, 10 Nov 2023 17:12:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=AA=8C=E8=AF=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/server/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/api/server/index.js b/src/api/server/index.js index 1008c36..a28943e 100644 --- a/src/api/server/index.js +++ b/src/api/server/index.js @@ -58,7 +58,8 @@ Object.assign(settings, { // api请求根地址 打包使用完整地址 调试使用本地服务器代理 避免跨域 baseURL: process.env.NODE_ENV == 'production' ? 'https://aj.ajcoins.com/api/' : '/api/', - // baseURL: 'https://aj.ajcoins.com/api/', + baseURL: 'https://aj.ajcoins.com/api/', + // baseURL: 'https://mgg.cxisux.com/api/', // 加载超时限定5s timeout: 10000, @@ -130,7 +131,12 @@ server.interceptors.response.use( // 清除session localStorage.removeItem("auth"); localStorage.removeItem("token"); - location.href = "/" + if(response.config.url.includes('getHistoryEntrust')){ + location.href = "/#/sign-in" + }else{ + location.href = "/" + } + break; case 1034: // 请设置交易密码 message = "请先设置交易密码!";