fix: 关闭控制台登录时请求的Authorization为null (#12442)

This commit is contained in:
chaos 2024-07-31 14:04:10 +08:00 committed by GitHub
parent 525f3bf43f
commit cfa3312582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -540,7 +540,7 @@ const request = (function(_global) {
config.beforeSend && config.beforeSend(xhr);
},
headers: {
Authorization: localStorage.getItem('token'),
Authorization: localStorage.getItem('token') || undefined,
AccessToken: accessTokenInHeader,
},
})