fix: 生产打包编译报错问题修复

Former-commit-id: 3998de871def78ea6f61b3ecd368411d50a2c6f9
This commit is contained in:
郝先瑞
2022-05-09 13:22:21 +08:00
parent eab11687aa
commit d0660ab59d
7 changed files with 129 additions and 120 deletions

View File

@@ -20,7 +20,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
],
// 本地反向代理解决浏览器跨域限制
server: {
host: 'localhost',
host: '0.0.0.0',
port: Number(env.VITE_APP_PORT),
open: true, // 运行自动打开浏览器
proxy: {