ip访问修改

This commit is contained in:
bestlee 2026-06-25 17:25:11 +08:00
parent 7c377f02eb
commit 9f438d986a
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ export default defineConfig({
resolvers: [VantResolver()], resolvers: [VantResolver()],
}), }),
], ],
server: {
host: '0.0.0.0', // 监听所有网络地址
port: 5173, // 可指定端口,默认 5173
// 如果需要,还可以配置 https、proxy 等
},
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)), '@': fileURLToPath(new URL('./src', import.meta.url)),