feat: 调整了登录的逻辑
This commit is contained in:
@@ -42,7 +42,7 @@ function request(url, args = {}, method = "POST", customConfig = {}) {
|
||||
if (customConfig.noToken) {
|
||||
delete header.Authorization;
|
||||
} else {
|
||||
if (token || customConfig.token) {
|
||||
if (!header.Authorization && (token || customConfig.token)) {
|
||||
header.Authorization = `Bearer ${token || customConfig.token}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user