1.设置proxyTable
proxyTable: {
'/api': {
target: 'http://127.0.0.1:3000',
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
},
},
2.使用
1.设置proxyTable
proxyTable: {
'/api': {
target: 'http://127.0.0.1:3000',
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
},
},
2.使用