代码调整

This commit is contained in:
dong 2023-06-05 16:30:07 +08:00
parent 2305d3452a
commit 3a5b59b30c

View File

@ -87,13 +87,13 @@ export default boot(({ app, router }) => {
},
(err) => {
if (err.response && err.response.status === 401) {
Dialog.create({
title: '认证失败',
message: '认证失败或登录超时,请重新登录',
persistent: true,
}).onOk(() => {
router.push({ name: 'login' });
});
// Dialog.create({
// title: '认证失败',
// message: '认证失败或登录超时,请重新登录',
// persistent: true,
// }).onOk(() => {
// router.push({ name: 'login' });
// });
}
return Promise.reject(ApiError.from(err));
}