element Ui paging size-change event triggers also initiates current-change event, resulting in two calls to the interface
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageInfo.PageNum"
:page-sizes="[5, 10, 20]"
:page-size="pageInfo.PageSize"
layout="total, sizes, prev, pager, next, jumper" :total="pageInfo.Total">
</el-pagination>
//pageSize
handleSizeChange(val) {
this.$emit("sizeChange", val);
},
//pageNum
handleCurrentChange() {
this.$emit("pageNumCheng");
}