@sweetui/sweet-mobile
Advanced tools
Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "@sweetui/sweet-mobile", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Sweet Mobile Core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -71,2 +71,9 @@ import axios from 'axios'; | ||
if (!url) return; | ||
// 在server.config.js中寻找匹配前缀的代理 | ||
for (const [prefix, target] of Object.entries(this.OPTIONS.config.proxy || {})) { | ||
if (url.startsWith(prefix)) { | ||
url = url.replace(prefix, '') | ||
break | ||
} | ||
} | ||
return this.axios[type.toLowerCase()](url, data); | ||
@@ -73,0 +80,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155421
542