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)