From 3a5b59b30c279fb5dd24dca00648a6bb1099110e Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 5 Jun 2023 16:30:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boot/axios.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/boot/axios.ts b/src/boot/axios.ts index 3fe93a6..e82f3b4 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -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)); }