遇到跨域的问题可在文件夹config中的index.js中进行设置
proxyTable: { ‘/api‘: { target: ‘http://39.97.33.178‘,//要用到的地址 changeOrigin: true } },
vue-cli中的跨域问题
原文:https://www.cnblogs.com/lipu12281/p/11836876.html