Commit 2c9fd43a by caoyanzhi

fix: 修复页面重复刷新

parent f5a61dd2
......@@ -70,7 +70,6 @@ function intercept(to, from, next) {
// 无权限访问
if (projectRoutes.some(el => el == to.path) || accessPath.length == 0) {
window.location.href = `${origin}/haoban-4/#/gic-error`;
window.location.reload();
} else {
next(accessPath[0]);
}
......
......@@ -52,7 +52,6 @@ const request = (opt, params) => {
if (resp.code == notAuthCode) {
window.location.href = `${origin}/haoban-4/#/login`;
window.location.reload();
return;
}
if (requestConfig.useIntercept && resp.code != succCode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment