ip访问修改
This commit is contained in:
@@ -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)),
|
||||||
|
|||||||
Reference in New Issue
Block a user