edit dev.proxyTable option in config/index.js. The dev server is using http-proxy-middleware for proxying为了解决跨域问题,

vue-cli webpack 开发环境跨域详解