This commit is contained in:
icssoa 2025-06-04 15:10:15 +08:00
parent bea322c070
commit 9f01336a47

View File

@ -26,12 +26,8 @@ export function getProxyTarget(proxy: any) {
const value = match[1];
try {
if (config.type == "uniapp-x") {
return proxy[value].target;
} else {
const { target, rewrite } = proxy[`/${value}/`];
return target + rewrite(`/${value}`);
}
const { target, rewrite } = proxy[`/${value}/`];
return target + rewrite(`/${value}`);
} catch (err) {
error(`[cool-proxy] Error${value}` + getPath());
return "";