vue axios 跨域解决办法 找到VUE项目中config文件夹下index.js 文件的 proxyTable方法 添加 '/api': { target: 'http://dev.ceshi.com', changeOrigin: true } 就会拦截域名/api 下的请求