From 238bceb5001ad187cfb956281e7a129ee968813e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sun, 17 Apr 2022 21:16:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dhttp=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E8=A6=86=E7=9B=96Authorization=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/interceptors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http/interceptors.js b/src/utils/http/interceptors.js index 6ef2ef6..c922320 100644 --- a/src/utils/http/interceptors.js +++ b/src/utils/http/interceptors.js @@ -21,7 +21,7 @@ export function setupInterceptor(service) { * * jwt token * ! 认证方案: Bearer */ - config.headers.Authorization = 'Bearer ' + token + if (!config.headers.Authorization) config.headers.Authorization = 'Bearer ' + token return config }