diff --git a/vite.config.js b/vite.config.js index 4bdd5aa..e44233f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -21,6 +21,11 @@ export default defineConfig({ resolvers: [VantResolver()], }), ], + server: { + host: '0.0.0.0', // 监听所有网络地址 + port: 5173, // 可指定端口,默认 5173 + // 如果需要,还可以配置 https、proxy 等 + }, resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)),