mirror of https://github.com/halo-dev/halo-admin
Fix pagination bug
parent
81150ddf0b
commit
4d7cab4a22
|
@ -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…
Reference in New Issue