为了账号安全,请及时绑定邮箱和手机立即绑定

vue+axios

vue+axios

Qyouu 2018-08-26 10:38:50
第一种请求方式:let customer_id = localStorage.getItem('customer_id') this.$http.post('/health_record/health_status_list.do',customer_id)使用这种方式从请求回来的数据是空的第二种请求方式:let param = new URLSearchParams(); param.append('customer_id', customer_id); this.$http({     method: 'post',     url: '/health_record/health_status_list.do',    data: param })使用这种方式就有数据
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 2107 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信