From ae6b866e0a4a0dd65c532491c1c7f924e54a7a3e Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 9 May 2025 19:55:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=202.250509?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- src/plugins/http-fetch.ts | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 50f26757..3de53719 100644 --- a/.env.development +++ b/.env.development @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network OMC" VITE_APP_CODE = "OMC" # 应用版本 -VITE_APP_VERSION = "2.250430" +VITE_APP_VERSION = "2.250509" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/.env.production b/.env.production index 50f26757..3de53719 100644 --- a/.env.production +++ b/.env.production @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network OMC" VITE_APP_CODE = "OMC" # 应用版本 -VITE_APP_VERSION = "2.250430" +VITE_APP_VERSION = "2.250509" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/src/plugins/http-fetch.ts b/src/plugins/http-fetch.ts index f3673262..df8c2f28 100644 --- a/src/plugins/http-fetch.ts +++ b/src/plugins/http-fetch.ts @@ -242,8 +242,10 @@ async function beforeResponse( setRefreshToken(result.data.refreshToken, result.data.refreshExpiresIn); return await request(options); } else { - delAccessToken(); - delRefreshToken(); + debugger + console.warn(result) + // delAccessToken(); + // delRefreshToken(); window.location.reload(); } }