Browse Source

接口验证登录后

master
luyisha 2 years ago
parent
commit
389c9f0a9c
  1. 10
      src/api/server/index.js

10
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 = "请先设置交易密码!";

Loading…
Cancel
Save