--修改代理配置

This commit is contained in:
2025-11-26 10:27:11 +08:00
parent d25edf8234
commit 6adf57c4bb
2 changed files with 14 additions and 8 deletions

View File

@ -10,8 +10,8 @@ VITE_PUBLIC_PATH = /
# 如果接口地址匹配到则会转发到http://localhost:3000防止本地出现跨域问题
# 可以有多个,注意多个不能换行,否则代理将会失效
#VITE_PROXY = [["/api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
#VITE_PROXY=[["/api","http://47.94.165.164:9500"]]
VITE_PROXY=[["/api/sales","http://127.0.0.1:8096/sales"],["/api/mdm","http://127.0.0.1:8096/mdm"],["/api","http://10.10.2.102:9500"]]
#VITE_PROXY=[["/api","http://10.10.2.102:9500"]]
VITE_PROXY=[["/api/system/generator/","http://127.0.0.1:8091/system/generator/"],["/api/sales/","http://127.0.0.1:8096","/sales/"],["/api/mdm/","http://127.0.0.1:8096","/mdm/"],["/api","http://10.10.2.102:9500"]]
# 是否删除Console.log
VITE_DROP_CONSOLE = false