From cfa3312582be99edecbaca570ed0e705d0ac85d2 Mon Sep 17 00:00:00 2001 From: chaos <83161242+LHyphen@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:04:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E7=99=BB=E5=BD=95=E6=97=B6=E8=AF=B7=E6=B1=82=E7=9A=84?= =?UTF-8?q?Authorization=E4=B8=BAnull=20(#12442)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console-ui/src/globalLib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console-ui/src/globalLib.js b/console-ui/src/globalLib.js index 9356fabeb..9437d7062 100644 --- a/console-ui/src/globalLib.js +++ b/console-ui/src/globalLib.js @@ -540,7 +540,7 @@ const request = (function(_global) { config.beforeSend && config.beforeSend(xhr); }, headers: { - Authorization: localStorage.getItem('token'), + Authorization: localStorage.getItem('token') || undefined, AccessToken: accessTokenInHeader, }, })