vue框架是用vue-cli搭建起来的,今天遇到了跨域问题,是按照如下方式解决的: 在config下的index.js中,添加如下代码 proxyTable: {'/api': {target: 'http://localhost:8081……