diff --git a/src/components/todo/ListComponent.vue b/src/components/todo/ListComponent.vue index 7c0af7f..93ed4da 100644 --- a/src/components/todo/ListComponent.vue +++ b/src/components/todo/ListComponent.vue @@ -82,7 +82,7 @@ @@ -229,11 +229,11 @@ export default { setup: function () {}, created: function () {}, mounted: function () { - this.getDatas(1) + this.getDatas() }, unmounted() {}, methods: { - async getDatas(page) { + async getDatas(page = 1) { this.isBusy = true const results = await this.callAPI('/todo', { params: { @@ -254,7 +254,7 @@ export default { this.isBusy = false }, searchClick() { - this.getDatas(1) + this.getDatas() }, pageClick(bvEvent, page) { console.log(bvEvent) @@ -265,7 +265,7 @@ export default { perPageClick(perPage) { this.perPage = perPage console.log(this.perPage) - this.getDatas(1) + this.getDatas() }, busyToggle() { this.isBusy = !this.isBusy