mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
修复登录失效空白页
This commit is contained in:
parent
ceed4db65b
commit
31a455c3d5
@ -44,6 +44,7 @@ const handleCode = (code, msg) => {
|
||||
case invalidCode:
|
||||
Vue.prototype.$baseMessage(msg || `后端接口${code}异常`, "error");
|
||||
store.dispatch("user/resetAccessToken").catch(() => {});
|
||||
location.reload();
|
||||
break;
|
||||
case noPermissionCode:
|
||||
router.push({ path: "/401" }).catch(() => {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user