修改Vue项目运行的端口号 在Vue项目下的vue.config.js增加如下配置: module.exports = { devServer: { port: 8081 // 此处修改你想要的端口号 } } 重启项目,即可。