第一种方法:
HOST=0 PORT=8000 npm run dev
第二种方法:在 package.json 添加
"scripts": {
"dev:host": "nuxt --hostname '0' --port 8000"
}
第一种方法:
HOST=0 PORT=8000 npm run dev
第二种方法:在 package.json 添加
"scripts": {
"dev:host": "nuxt --hostname '0' --port 8000"
}