ad4d9e59 by renchao@pashanhoo.com

style:监管

1 parent 9901ceaa
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-05-25 14:07:28
* @LastEditTime: 2023-05-25 14:43:56
*/
import Vue from 'vue'
import axios from "axios";
......@@ -69,23 +69,12 @@ function handleErrorData (status) {
window.tokenValid = false;
Message.error("由于长时间未操作,请重新登录!");
localStorage.removeItem("token");
let code = Vue.prototype.BASE_API.CODE
if (code == 'BDCSBPT') {
router.replace({
path: "/login",
query: {
redirect: router.history.current.fullPath,
},
});
} else {
router.replace({
path: "/jg",
query: {
redirect: router.history.current.fullPath,
},
});
}
router.replace({
path: "/login",
query: {
redirect: router.history.current.fullPath,
}
})
}
break;
case 404:
......