From e1299a5520fdb15ef5bc37c24589f09c1cd5ead2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Wed, 27 Dec 2023 08:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- src/utils/request.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index dde16aa..fe39bda 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite + Vue + TS + 电能质量数据监测云平台
diff --git a/src/utils/request.ts b/src/utils/request.ts index 15627e2..5adc6f6 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -123,6 +123,7 @@ function createAxios>( type: 'error', message: response.data.msg }) + adminInfo.removeToken() router.push({ name: 'login' }) return Promise.reject(response.data) } else {