提交 46e9b92f authored 作者: 王鹏飞's avatar 王鹏飞

fix: 页面没有权限重定向到缺省页

上级 b3eb6792
......@@ -43,7 +43,7 @@ httpRequest.interceptors.response.use(
window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
} else if (status === 400 && code === 401) {
router.push('/role')
} else if (status === 401) {
} else if (status === 400 || status === 401) {
router.push('/index')
} else {
Message.error(message || error.response.data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论