修改管理端跳转地址

管理端接口调用,401,不再跳转登录,不过打印错误信息
This commit is contained in:
daihh
2023-07-28 10:58:22 +08:00
parent a6054bb863
commit 231fe35ce5
3 changed files with 7 additions and 5 deletions

View File

@@ -53,9 +53,11 @@ const formRequest=axios.create({
return res.data
}else{
if(code === 401){
store.dispatch('LogOut').then(() => {
location.href = this.webBaseUrl + ReLoginUrl;
})
// store.dispatch('LogOut').then(() => {
// location.href = this.webBaseUrl + ReLoginUrl;
// })
console.error('',res.data);
return Promise.reject(new Error('接口返回未登录'))
}else if(code===403){
var msg='当前操作没有权限';
Message({message: msg, type: 'error'});