Skip to content

Commit

Permalink
perf: 优化一下代码
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Jiangweidong committed Dec 29, 2023
1 parent d868d2b commit be7735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class HttpService {
options = {};
}
const headers = options.headers || new HttpHeaders();
if (!options.headers || !options.headers.get('X-JMS-ORG')) {
if (headers.get('X-JMS-ORG')) {
const orgID = this._cookie.get('X-JMS-LUNA-ORG') || this._cookie.get('X-JMS-ORG');
options.headers = headers.set('X-JMS-ORG', orgID);
}
Expand Down

0 comments on commit be7735f

Please sign in to comment.