diff --git a/store/admin.js b/store/admin.js index 3b43b61..ce45f70 100644 --- a/store/admin.js +++ b/store/admin.js @@ -43,7 +43,9 @@ export const actions = { commit('updateFetching', true) return this.$axios - .$get(`${ADMIN_API_PATH}/users`) + .$get(`${ADMIN_API_PATH}/users`, { + params: params + }) .then(response => { commit('updateFetching', false); commit('updateUsersData', response); @@ -59,7 +61,9 @@ export const actions = { commit('updateFetching', true) return this.$axios - .$get(`${ADMIN_API_PATH}/roles`) + .$get(`${ADMIN_API_PATH}/roles`, { + params: params + }) .then(response => { commit('updateFetching', false); commit('updateRolesData', response);