From b9dd346275099b20ce51dc3eec151825a31cb825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 23 Aug 2022 09:29:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95=203=EB=B2=88=EC=A7=B8...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/3_api/todo/listView.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/views/3_api/todo/listView.vue b/src/views/3_api/todo/listView.vue index ff1f1e8..5d38999 100644 --- a/src/views/3_api/todo/listView.vue +++ b/src/views/3_api/todo/listView.vue @@ -100,16 +100,14 @@ export default { unmounted() {}, methods: { list() { - const parameters = { - params: { - page: parseInt(this.currentPage), - per_page: parseInt(this.perPage), - searchString: this.searchString - } - } - console.log(parameters) axios - .get('http://localhost:3000/todo', parameters) + .get('http://localhost:3000/todo', { + params: { + page: parseInt(this.currentPage), + per_page: parseInt(this.perPage), + searchString: this.searchString + } + }) .then((response) => { // console.log(response) this.currentPage = response.data.page