fix: 修复http拦截强制覆盖Authorization问题
This commit is contained in:
parent
c2145c0ddb
commit
238bceb500
@ -21,7 +21,7 @@ export function setupInterceptor(service) {
|
|||||||
* * jwt token
|
* * jwt token
|
||||||
* ! 认证方案: Bearer
|
* ! 认证方案: Bearer
|
||||||
*/
|
*/
|
||||||
config.headers.Authorization = 'Bearer ' + token
|
if (!config.headers.Authorization) config.headers.Authorization = 'Bearer ' + token
|
||||||
|
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user