ks001
This commit is contained in:
@@ -65,8 +65,11 @@ function createService() {
|
||||
err("登录状态已过期,需要重新登录")
|
||||
// 清楚本地localStorage
|
||||
tool.local.clear()
|
||||
// 移动到网站的根目录
|
||||
window.location.href = "/"
|
||||
// 移动到网站的根目录-这里不需要因为导航守卫可以返回login页面
|
||||
if (error.response.data.data.code === 40001) {
|
||||
} else {
|
||||
window.location.href = "/"
|
||||
}
|
||||
break
|
||||
case 403:
|
||||
err("没有权限访问该资源")
|
||||
|
||||
Reference in New Issue
Block a user