代码调整
This commit is contained in:
parent
3a5b59b30c
commit
313f4c1f8c
@ -87,13 +87,13 @@ export default boot(({ app, router }) => {
|
|||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
if (err.response && err.response.status === 401) {
|
if (err.response && err.response.status === 401) {
|
||||||
// Dialog.create({
|
Dialog.create({
|
||||||
// title: '认证失败',
|
title: '认证失败',
|
||||||
// message: '认证失败或登录超时,请重新登录',
|
message: '认证失败或登录超时,请重新登录',
|
||||||
// persistent: true,
|
persistent: true,
|
||||||
// }).onOk(() => {
|
}).onOk(() => {
|
||||||
// router.push({ name: 'login' });
|
router.push({ name: 'login' });
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
return Promise.reject(ApiError.from(err));
|
return Promise.reject(ApiError.from(err));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user