添加了一个修改

This commit is contained in:
rucky
2025-11-23 23:55:10 +08:00
commit cefc2a1653
46 changed files with 10659 additions and 0 deletions

18
vite.config.js Normal file
View File

@@ -0,0 +1,18 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// Vite 配置:默认监听 0.0.0.0,绑定所有网卡 IP
export default defineConfig({
plugins: [vue()],
server: {
host: '0.0.0.0', // 监听所有网卡
port: 5173, // 如需更换端口可修改这里
https: false, // 启用 HTTPS使用自签名证书
},
preview: {
host: '0.0.0.0', // preview 模式也监听所有网卡
port: 5173, // preview 模式使用相同端口
},
})