使用fetch请求数据
created(){
fetch("http://localhost:8181/user/page?pageNum=1&pageSize=5").then(res=>res.json()).then(res=>{
console.log(res);
this.tableData=res.data;
this.total=res.total;
})
},
使用fetch请求数据
created(){
fetch("http://localhost:8181/user/page?pageNum=1&pageSize=5").then(res=>res.json()).then(res=>{
console.log(res);
this.tableData=res.data;
this.total=res.total;
})
},