fix: proxy

This commit is contained in:
duyin
2022-05-19 22:52:11 +08:00
committed by GitHub
parent 1f8e50f482
commit dca722cb29

View File

@@ -30,7 +30,7 @@ const warpperEnv = (envConf: Recordable): ViteEnv => {
// 跨域代理重写
const regExps = (value: string, reg: string): string => {
return value.replace(new RegExp(reg, "g"), "");
return value.replace(new RegExp(`^${reg}`, "g"), "");
};
// 环境变量