feat: 配置局域网IP访问与4312端口

This commit is contained in:
GJ
2026-09-04 18:31:51 +08:00
parent 50b3461ebc
commit c483b1912e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ export default defineConfig(({ mode }) => {
plugins: [vue(), tailwindcss()],
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
server: {
port: 5173,
/** 监听所有网卡,使 Vite 启动时输出可访问的局域网 IP。 */
host: true,
port: 4312,
proxy: {
'/api': {
target: env.API_PROXY_TARGET || 'http://localhost:3412',