🐛 用户/角色管理界面分页问题修复

This commit is contained in:
x ronger 2020-09-15 22:05:06 +08:00
parent 6c396f4be8
commit dae9333b3f

View File

@ -43,7 +43,9 @@ export const actions = {
commit('updateFetching', true) commit('updateFetching', true)
return this.$axios return this.$axios
.$get(`${ADMIN_API_PATH}/users`) .$get(`${ADMIN_API_PATH}/users`, {
params: params
})
.then(response => { .then(response => {
commit('updateFetching', false); commit('updateFetching', false);
commit('updateUsersData', response); commit('updateUsersData', response);
@ -59,7 +61,9 @@ export const actions = {
commit('updateFetching', true) commit('updateFetching', true)
return this.$axios return this.$axios
.$get(`${ADMIN_API_PATH}/roles`) .$get(`${ADMIN_API_PATH}/roles`, {
params: params
})
.then(response => { .then(response => {
commit('updateFetching', false); commit('updateFetching', false);
commit('updateRolesData', response); commit('updateRolesData', response);