如果您使用的是 vue-cli 3.x,则只需将端口传递给 npm 命令,如下所示:. npm run serve -- --port 3000. 然后参观 http://localhost:3000/.
確定! 回上一頁