package.json文件找到 "scripts" 在dev后添加 --port 8080
image.png
"scripts": {
"dev": "vite --port 8080",
"build": "vite build"
},
package.json文件找到 "scripts" 在dev后添加 --port 8080
"scripts": {
"dev": "vite --port 8080",
"build": "vite build"
},