🔧 build(proxyTable): 添加proxyTable解决跨域问题

dev
zjb 11 months ago
parent d8c975b1d2
commit 527d78784c

@ -10,7 +10,15 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
proxyTable: {
'/': {
target: 'http://localhost:9011', // 接口域名
changeOrigin: true, //是否跨域
pathRewrite: {
'^/': '' //需要rewrite重写的,
}
}
},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST

Loading…
Cancel
Save