Commit 31a455c3 by chuzhixin

修复登录失效空白页

parent ceed4db6
...@@ -44,6 +44,7 @@ const handleCode = (code, msg) => { ...@@ -44,6 +44,7 @@ const handleCode = (code, msg) => {
case invalidCode: case invalidCode:
Vue.prototype.$baseMessage(msg || `后端接口${code}异常`, "error"); Vue.prototype.$baseMessage(msg || `后端接口${code}异常`, "error");
store.dispatch("user/resetAccessToken").catch(() => {}); store.dispatch("user/resetAccessToken").catch(() => {});
location.reload();
break; break;
case noPermissionCode: case noPermissionCode:
router.push({ path: "/401" }).catch(() => {}); router.push({ path: "/401" }).catch(() => {});
......
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