第一次接触vue,使用this.$http与后台交互发现传回参数为null,比较傻缺
【说明:这里为解决过程,可以直接拉到最后看解决办法。】
需求:想要前端做post请求到后台,并传递实体参数。
最开始代码:
this.$http({
method:'post',
url:this.$serverUrl+'/OvervoltageMonitorSys_war_exploded/userC/login',
data:{
userName: this.login.accountName,
password: this.login.password,
}
}).the
原创
2020-12-01 14:25:27 ·
3742 阅读 ·
1 评论