From 8976f69415202fcc3a958a891270232b3e85dbe4 Mon Sep 17 00:00:00 2001 From: johnniang Date: Fri, 19 Apr 2019 00:56:17 +0800 Subject: [PATCH] Fix pagination confusion --- src/views/attachment/AttachmentList.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 76c45d9ee..c75a91772 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -64,6 +64,7 @@ { this.attachments = response.data.data.content @@ -269,10 +270,10 @@ export default { onChildClose() { this.drawerVisible = false }, - handlePaginationChange(page, pageSize) { - this.$log.debug(`Current: ${page}, PageSize: ${pageSize}`) - this.pagination.current = page - this.pagination.pageSize = pageSize + handlePaginationChange(page, size) { + this.$log.debug(`Current: ${page}, PageSize: ${size}`) + this.pagination.page = page + this.pagination.size = size this.loadAttachments() }, handleUpload(option) {