mybatis-plus+vue+elementUI的分页功能实现过程
基础的selectAll方法
created: function () {
this.selectAll();
},
methods: {
selectAll() {
let url =
LIST_URL + "/" + this.currentPage + "/" + this.pageSize;
//传了currentPage和pageSize到后台
this.axios({
method: "POST",
url: url,
data: this.$data.searchForm,//查询用的,与本文无瓜
})
.then((data) =><