通过自身实践,这样配置可以请求到后台数据,在config下的config.js下配置以下代码:
// 接口代理示例
proxy: {
"/SCMAppService": {
"target": "http://localhost:8080/",
"changeOrigin": true,
},
},
// 接口代理示例
proxy: {
"/SCMAppService": {
"target": "http://localhost:8080/",
"changeOrigin": true,
},
},