fix: 修复http拦截强制覆盖Authorization问题
This commit is contained in:
parent
c2145c0ddb
commit
238bceb500
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user