From 313f4c1f8cb6340bf15aacc6c04d84446101fb25 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 5 Jun 2023 16:43:24 +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 e82f3b4..3fe93a6 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)); }