this.axios.post("http://localhost:81/users/user")
.then(response=>{
//console.log(response.data);
this.customers = response.data;
console.log(customers);
}).catch(err=>{
console.log(err);
});
axios要用箭头,用function不能将数组的值渲染到前端
this.axios.post("http://localhost:81/users/user")
.then(response=>{
//console.log(response.data);
this.customers = response.data;
console.log(customers);
}).catch(err=>{
console.log(err);
});
axios要用箭头,用function不能将数组的值渲染到前端