mirror of https://github.com/halo-dev/halo-admin
Fix pagination bug
parent
81150ddf0b
commit
4d7cab4a22
|
@ -23,9 +23,9 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row type="flex" justify="end" :gutter="12">
|
<a-row type="flex" justify="end" :gutter="12">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
v-model="pagination.page"
|
|
||||||
:defaultPageSize="pagination.size"
|
:defaultPageSize="pagination.size"
|
||||||
:total="pagination.total"
|
:total="pagination.total"
|
||||||
|
@change="handlePaginationChange"
|
||||||
></a-pagination>
|
></a-pagination>
|
||||||
</a-row>
|
</a-row>
|
||||||
<div class="upload-button">
|
<div class="upload-button">
|
||||||
|
@ -219,6 +219,11 @@ export default {
|
||||||
onChildClose() {
|
onChildClose() {
|
||||||
this.drawerVisible = false
|
this.drawerVisible = false
|
||||||
},
|
},
|
||||||
|
handlePaginationChange(page, pageSize) {
|
||||||
|
this.pagination.page = page
|
||||||
|
this.pagination.size = pageSize
|
||||||
|
this.loadAttachments()
|
||||||
|
},
|
||||||
handleUpload(option) {
|
handleUpload(option) {
|
||||||
this.$log.debug('Uploading option', option)
|
this.$log.debug('Uploading option', option)
|
||||||
const CancelToken = attachmentApi.CancelToken
|
const CancelToken = attachmentApi.CancelToken
|
||||||
|
|
Loading…
Reference in New Issue