fix: 关闭控制台登录时请求的Authorization为null (#12442)
This commit is contained in:
parent
525f3bf43f
commit
cfa3312582
@ -540,7 +540,7 @@ const request = (function(_global) {
|
|||||||
config.beforeSend && config.beforeSend(xhr);
|
config.beforeSend && config.beforeSend(xhr);
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: localStorage.getItem('token'),
|
Authorization: localStorage.getItem('token') || undefined,
|
||||||
AccessToken: accessTokenInHeader,
|
AccessToken: accessTokenInHeader,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user