fix: 登录页、首页路由调整

This commit is contained in:
ssongliu
2023-03-06 09:26:57 +08:00
parent decb4bb16b
commit c45a19f1e5
15 changed files with 46 additions and 18 deletions

View File

@@ -44,13 +44,13 @@ class RequestHttp {
}
if (data.code == ResultEnum.OVERDUE || data.code == ResultEnum.FORBIDDEN) {
router.replace({
path: '/',
path: '/login',
});
return Promise.reject(data);
}
if (data.code == ResultEnum.UNSAFETY) {
router.replace({
path: '/',
path: '/login',
});
return data;
}