Browse Source

Fix pagination bug

pull/9/head
johnniang 6 years ago
parent
commit
4d7cab4a22
  1. 7
      src/views/attachment/AttachmentList.vue

7
src/views/attachment/AttachmentList.vue

@ -23,9 +23,9 @@
</a-row>
<a-row type="flex" justify="end" :gutter="12">
<a-pagination
v-model="pagination.page"
:defaultPageSize="pagination.size"
:total="pagination.total"
@change="handlePaginationChange"
></a-pagination>
</a-row>
<div class="upload-button">
@ -219,6 +219,11 @@ export default {
onChildClose() {
this.drawerVisible = false
},
handlePaginationChange(page, pageSize) {
this.pagination.page = page
this.pagination.size = pageSize
this.loadAttachments()
},
handleUpload(option) {
this.$log.debug('Uploading option', option)
const CancelToken = attachmentApi.CancelToken

Loading…
Cancel
Save