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 }