a6ee3e2c by renchao@pashanhoo.com

style:监管

1 parent 241897bb
......@@ -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:
......