Update vite.config.ts

This commit is contained in:
liuziting
2026-01-21 17:04:29 +08:00
parent f3fc0444a8
commit 7559efa93a

View File

@@ -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'),