fix: 修复http拦截强制覆盖Authorization问题

This commit is contained in:
张传龙 2022-04-17 21:16:30 +08:00
parent c2145c0ddb
commit 238bceb500

View File

@ -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
}