时间:2021-07-01 10:21:17 帮助过:19人阅读
本文介绍了vue-cli构建项目反向代理配置,分享给大家,具体如下:

proxyTable: {//配置请求代理
'/dlsys':{
target:'http://192.168.16.209:81',
changeOrigin:true,
pathRewrith:{
'^/dlsys':
'/dlsys'
}
},
'/dlapi':{
target:'http://192.168.16.209:81',
changeOrigin:true,
pathRewrith:{
'^/dlapi':
'/dlapi'
}
},
'/dlbiz':{
target:'http://192.168.16.211:80',
changeOrigin:true,
pathRewrith:{
'^/dlbiz':
'/dlbiz'
}
}
},以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注PHP中文网!
相关推荐:
如何解决vue-cli中stylus无法使用的问题
Vue-cli proxyTable如何解决开发环境的跨域问题
以上就是vue-cli构建项目反向代理配置的解析的详细内容,更多请关注Gxl网其它相关文章!