diff --git a/src/views/system/permission/utils/hook.tsx b/src/views/system/permission/utils/hook.tsx index d72d419..ebac951 100644 --- a/src/views/system/permission/utils/hook.tsx +++ b/src/views/system/permission/utils/hook.tsx @@ -199,9 +199,9 @@ export function usePermission(tableRef: Ref) { }); if (code === 200) { dataList.value = data?.records || []; - pagination.total = data?.total || 0; - pagination.pageSize = data?.size || 10; - pagination.currentPage = data?.current || 1; + pagination.total = Number(data?.total) || 0; + pagination.pageSize = Number(data?.size) || 10; + pagination.currentPage = Number(data?.current) || 1; } } catch (error) { console.error(error); diff --git a/src/views/system/role/utils/hook.tsx b/src/views/system/role/utils/hook.tsx index 19534e8..7d221c4 100644 --- a/src/views/system/role/utils/hook.tsx +++ b/src/views/system/role/utils/hook.tsx @@ -187,9 +187,9 @@ export function useRole(treeRef: Ref) { }); if (code === 200) { dataList.value = data.records; - pagination.total = data.total; - pagination.pageSize = data.size; - pagination.currentPage = data.current; + pagination.total = Number(data.total); + pagination.pageSize = Number(data.size); + pagination.currentPage = Number(data.current); } setTimeout(() => { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 00efe88..d84859a 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -139,7 +139,7 @@ const { ref="tableRef" row-key="id" adaptive - :adaptiveConfig="{ offsetBottom: 10 }" + :adaptiveConfig="{ offsetBottom: 120 }" align-whole="center" table-layout="auto" :loading="loading" diff --git a/src/views/system/user/utils/hook.tsx b/src/views/system/user/utils/hook.tsx index 642fc3a..d86605a 100644 --- a/src/views/system/user/utils/hook.tsx +++ b/src/views/system/user/utils/hook.tsx @@ -263,9 +263,9 @@ export function useUser(tableRef: Ref) { }); if (code === 200) { dataList.value = data.records; - pagination.total = data.total; - pagination.pageSize = data.size; - pagination.currentPage = data.current; + pagination.total = Number(data.total); + pagination.pageSize = Number(data.size); + pagination.currentPage = Number(data.current); } setTimeout(() => {