From db93ede110a4b73f4515b2ea85e6d5020180fae0 Mon Sep 17 00:00:00 2001 From: sion123 <450702724@qq.com> Date: Sun, 18 Jan 2026 15:37:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/api/axios/client.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/api/axios/client.js b/frontend/api/axios/client.js index b3e580bb45..822f7fd89f 100644 --- a/frontend/api/axios/client.js +++ b/frontend/api/axios/client.js @@ -65,14 +65,7 @@ export default function createClientAxios(options = {}) { if (!currentToken) { return config } - const tenantId = - (typeof import.meta !== 'undefined' && import.meta.env?.VITE_TENANT_ID) || - (typeof process !== 'undefined' && process.env?.VITE_TENANT_ID) || - '1' - - if (tenantId) { - config.headers['tenant-id'] = tenantId - } + const isTokenExpired = tokenManager.isExpired(30 * 1000) if (!isTokenExpired) {