在配置好项目之后的package.json文件中,找到运行的script,其中“serve”中增加配置“ --open”
"scripts": { "serve": "vue-cli-service serve --open", "build": "vue-cli-service build", "lint": "vue-cli-service lint" },
默认打开系统默认浏览器