解决vue+webpack项目接口跨域问题

一、config文件夹下index.js文件设置proxyTable(proxyTable后面的host能够设置也能够保持默认的localhost)ios proxyTable: { '/api': { target: 'http://10.xx.xx.xx:8080/renter-server', // 开发环境 // target: 'http://10.xx.xx.xx:
相关文章
相关标签/搜索