配置前端Vue2.0跨域代理 在config下的index.js文件下配置跨域代理 proxyTable: { "/api":{ target:“https://10.**.**", changeOrigin:true,//是否改变域名 secure:false, pathRewrite:{ //路徑重寫 "^/api":"" } } }, 配置完成之后,每当遇到/api ,就会自动识别成https://10.**.**.