mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
fix: proxy
This commit is contained in:
parent
1f8e50f482
commit
dca722cb29
@ -30,7 +30,7 @@ const warpperEnv = (envConf: Recordable): ViteEnv => {
|
|||||||
|
|
||||||
// 跨域代理重写
|
// 跨域代理重写
|
||||||
const regExps = (value: string, reg: string): string => {
|
const regExps = (value: string, reg: string): string => {
|
||||||
return value.replace(new RegExp(reg, "g"), "");
|
return value.replace(new RegExp(`^${reg}`, "g"), "");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 环境变量
|
// 环境变量
|
||||||
|
Loading…
x
Reference in New Issue
Block a user