template\admin\package.json
"scripts": {
"serve": "vue-cli-service serve --open --mode=dev",
"build": "vue-cli-service build --mode=production"
},
serve里面增加“ --port=8888”,改为
"scripts": {
"serve": "vue-cli-service serve --open --mode=dev --port=8888",
"build": "vue-cli-service build --mode=production"
},
然后 npm run serve