diff --git a/vite.config.ts b/vite.config.ts index cf60ce1..94cf4db 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,10 @@ import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], + server: { + host: '0.0.0.0', // 允许通过 IP 访问 + port: 5173, // 你可以根据需要修改端口 + }, resolve: { alias: { '@': path.resolve(__dirname, './src'),