在config里的index.js 的proxyTable里面配置格式为
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
//做本地代理
proxyTable: {
'/doctor_sys_api': {
target: 'http://47.102.194.98:8080/doctor_sys_api',
changeOrigin: true,
pathRewrite: {
'^/doctor_sys_api': ''
}
},
},

详情参考 https://blog.csdn.net/qq_36772866/article/details/85795111
博客介绍了在config里的index.js的proxyTable里的配置格式,并给出参考链接https://blog.csdn.net/qq_36772866/article/details/85795111 。
897

被折叠的 条评论
为什么被折叠?



