From ef9ed50533cd4f08db50e920d280d661b3d84291 Mon Sep 17 00:00:00 2001 From: AhJindeg Date: Tue, 25 Jun 2024 11:30:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9E=20update=20axios=20intercep?= =?UTF-8?q?tors=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/axios/service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index 25936068..aed40908 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -174,6 +174,7 @@ service.interceptors.response.use( if (msg === '无效的刷新令牌') { // hard coding:忽略这个提示,直接登出 console.log(msg) + return handleAuthorized() } else { ElNotification.error({ title: msg }) }