From 631629d9ddfadae95ad6c7af2e0a054e29173834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 7 Sep 2022 18:49:22 +0900 Subject: [PATCH] Store_Vuex init... --- src/store/modules/todo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/todo.js b/src/store/modules/todo.js index d4b7c1e..0134daa 100644 --- a/src/store/modules/todo.js +++ b/src/store/modules/todo.js @@ -38,9 +38,10 @@ const mutations = { const actions = { setData: function (context, params) { console.log(params) + //주의 .get의 parameter는 { params: params} 처럼 보내야함 return new Promise((resolve, reject) => { todoAxios - .get('/todo', params) + .get('/todo', { params: params }) .then((response) => { const { data } = response context.commit('setData', data)