perf: 将baseURL和全局环境代理删除,可直接在vite.config.ts编写,即方便又支持多个代理地址

This commit is contained in:
xiaoxian521
2022-11-10 11:47:07 +08:00
parent 731e9b2f57
commit 2bb433c3cd
14 changed files with 15 additions and 57 deletions

View File

@@ -4,9 +4,6 @@ VITE_PUBLIC_PATH = /
# 线上环境路由历史模式
VITE_ROUTER_HISTORY = "hash"
# 线上环境后端地址
VITE_PROXY_DOMAIN_REAL = ""
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false
VITE_LEGACY = false