在配置好项目之后的package.json文件中,找到运行的script,其中“serve”中增加配置“ --open”

"scripts": {
    "serve": "vue-cli-service serve --open",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },

 默认打开系统默认浏览器

相关文章:

  • 2021-09-26
  • 2021-06-26
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-02-04
  • 2021-08-17
相关资源
相似解决方案