1.找到项目中的package.json文件
2.找到script
找到如下代码:"scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" },
在vue-cli-service serve
添加-- open
保存之后即可默认浏览器启动
2024-01-20 19:03:29
1.找到项目中的package.json文件
2.找到script
找到如下代码:"scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" },
在vue-cli-service serve
添加-- open
保存之后即可默认浏览器启动