fix: 修复在没有勾选使用代理的情况下,仍然会使用代理的bug

pull/148/head
xiaojunnuo 2024-08-26 11:34:01 +08:00
parent 4b9d1eb4b5
commit 0f6679425f
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class HttpClient {
*/
async request(url, method, opts = {}) {
if (this.urlMapping && this.urlMapping.mappings) {
if (this.urlMapping && this.urlMapping.enabled && this.urlMapping.mappings) {
// eslint-disable-next-line no-restricted-syntax
for (const key in this.urlMapping.mappings) {
if (url.includes(key)) {