diff --git a/vite.config.ts b/vite.config.ts index 0859f58b..de5c2fa6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,6 +20,8 @@ export default defineConfig({ server: { port: 5174, host: '0.0.0.0', + // 允许所有主机访问开发服务器(如 test.wms.com、局域网 IP 等) + allowedHosts: true, proxy: { '/dev-api': { target: 'http://localhost:9528', // Assuming Vue 2 backend is running here, user can change