|
|
@ -91,10 +91,10 @@ service.interceptors.response.use(res => {
|
|
|
|
// location.href = '/index';
|
|
|
|
// location.href = '/index';
|
|
|
|
router.replace("/login");
|
|
|
|
router.replace("/login");
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
isRelogin.show = false;
|
|
|
|
isRelogin.show = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
|
|
|
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
|
|
|
} else if (code === 500) {
|
|
|
|
} else if (code === 500) {
|
|
|
|
Message({ message: msg, type: 'error' })
|
|
|
|
Message({ message: msg, type: 'error' })
|
|
|
|