Pre Merge pull request !196 from taxuexunji/master

This commit is contained in:
taxuexunji 2024-04-18 01:57:53 +00:00 committed by Gitee
commit 27b2216479
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@ export class RequestOption {
// 全局调用header对应的方法包含RequestOption的形式 // 全局调用header对应的方法包含RequestOption的形式
addHeaderMap(map: Map<string, Object>) { addHeaderMap(map: Map<string, Object>) {
this.headers = map; map.forEach((value, key) => {
if (!this.headers.has(key)) {
this.addHeader(key, value);
}
})
} }
// 优先级 // 优先级