使用方式:
在vue.config.js加入
devServer: { proxy: 'http://localhost:8080' }
前端直接axios 调用方式:
官网:https://cli.vuejs.org/zh/config/#devserver