第一種請(qǐng)求方式:let customer_id = localStorage.getItem('customer_id')
this.$http.post('/health_record/health_status_list.do',customer_id)使用這種方式從請(qǐng)求回來(lái)的數(shù)據(jù)是空的第二種請(qǐng)求方式:let param = new URLSearchParams();
param.append('customer_id', customer_id);
this.$http({
method: 'post',
url: '/health_record/health_status_list.do', data: param
})使用這種方式就有數(shù)據(jù)
vue+axios
Qyouu
2018-08-26 10:38:50