From 9f438d986aa30b0f2cb892e2220330d8d5684cbf Mon Sep 17 00:00:00 2001 From: bestlee Date: Thu, 25 Jun 2026 17:25:11 +0800 Subject: [PATCH] =?UTF-8?q?ip=E8=AE=BF=E9=97=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 5 +++++ 1 file changed, 5 insertions(+) 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)),