首先在根目录下创建vue.config.js文件
然后添加
module.exports = {
devServer: {
proxy: ‘http://localhost:4000’,
port: 9000
}
}
端口就修改成9000了。
官方文档https://cli.vuejs.org/zh/config/#devserver也可以查看
首先在根目录下创建vue.config.js文件
然后添加
module.exports = {
devServer: {
proxy: ‘http://localhost:4000’,
port: 9000
}
}
端口就修改成9000了。
官方文档https://cli.vuejs.org/zh/config/#devserver也可以查看