From 5d437af17f6e0aa2472cc13cf11942b2e6929741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 30 Aug 2022 16:39:15 +0900 Subject: [PATCH] =?UTF-8?q?Vue2=5FFrontend=20=EC=88=98=EC=A0=951...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/todo/ListComponent.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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