一. vue-cli3代理配置。
进入vue.config.js配置文件,在module.exports在加入
1.请求代理过程说明: 例:http://localhost:8086/api
(1)遇见api开始跨域操作。
(2)将原域名改为指定url http://localhost:8086/api —》http://localhost:8085/vue/api
(3)将api改为list http://localhost:8085/vue/api —》http://localhost:8085/vue/list
(4)所有最终代理url为http://localhost:8085/vue/list