fix: 重构虚拟机内网外网参数设置选择网络
Build and Deploy Vue3 / build (push) Successful in 1m28s
Build and Deploy Vue3 / deploy (push) Successful in 1m1s

This commit is contained in:
2026-03-26 16:36:25 +08:00
parent 40a5e486a6
commit 1a4587f893
13 changed files with 1028 additions and 135 deletions
+13 -12
View File
@@ -35,18 +35,19 @@ export default defineConfig(({ mode }) => {
host: '0.0.0.0',
port: 5176,
strictPort: false,
proxy: {
'/api': {
target: proxyTarget,
changeOrigin: true,
secure: false
},
'/acs': {
target: proxyTarget,
changeOrigin: true,
secure: false
}
}
// proxy 已关闭,前端直接请求后端地址(在 src/config/env.js 中配置)
// proxy: {
// '/api': {
// target: proxyTarget,
// changeOrigin: true,
// secure: false
// },
// '/acs': {
// target: proxyTarget,
// changeOrigin: true,
// secure: false
// }
// }
},
build: {
rollupOptions: {