Skip to content

Commit

Permalink
修复用户管理和后台用户管理分页
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Aug 25, 2023
1 parent cba588f commit 9afed83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
21 changes: 11 additions & 10 deletions admin/src/views/management/admin_member/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
:row-key="row => row.id"
scroll-x="1280"
flex-height
remote
class="flex-1-hidden"
/>
<edit-admin-member-modal v-model:visible="visible" :type="modalType" :edit-data="editData" :enums="enums" />
Expand Down Expand Up @@ -85,18 +86,18 @@ function setTableData(response: Admin.AdminMemberListResponse) {
async function getTableData() {
startLoading();
const { data } = await fetchAdminMemberList(
listParams.value.search,
listParams.value.status,
pagination.page,
pagination.pageSize
);
if (data) {
try {
try {
const { data } = await fetchAdminMemberList(
listParams.value.search,
listParams.value.status,
pagination.page,
pagination.pageSize
);
if (data) {
setTableData(data);
} finally {
endLoading();
}
} finally {
endLoading();
}
}
Expand Down
1 change: 1 addition & 0 deletions admin/src/views/member/list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
:row-key="row => row.id"
scroll-x="1600"
flex-height
remote
class="flex-1-hidden"
/>
<edit-member-modal v-if="editData" v-model:visible="visible" :edit-data="editData" :enums="enums" />
Expand Down

0 comments on commit 9afed83

Please sign in to comment.