antdpro传参数到后台,接收不到,响应无返回数据
首先antdesignPro需要在config中配置代理,这样才会跨域名发送请求,F12中的request头的路径还是localhost:8000这是npm start的路径,看响应数据即可。
config/config
proxy:{
'/api/':{
target:'http://localhost:8080/innovation_park_center/'...
原创
2019-10-25 09:25:38 ·
2222 阅读 ·
0 评论