废话不多说,直接开干!
知识点

“serve”: “vue-cli-service serve --port 8089”,

找到项目中package.json文件

{
  "name": "default",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve --port 8089", //这里加个端口即可
    "build": "vue-cli-service build"
  },
  "dependencies": {
    "core-js": "^2.6.5",
    "vue": "^2.6.10"
	
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.8.0",
    "@vue/cli-service": "^3.8.0",
    "vue-router": "^3.5.3",
    "vue-template-compiler": "^2.6.10"
  }
}

看下运行结果
在这里插入图片描述
在这里插入图片描述

Logo

前往低代码交流专区

更多推荐