From eb4c4b746238bf94e9596f5a47b25099562272d2 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Sun, 15 Feb 2026 09:26:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=AE=80=E5=8C=96=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CURD/PageContent.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 40c4628d..972fb7b4 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -878,9 +878,8 @@ function fetchPageData(formData: IObject = {}, isRestart = false) { ) .then((data) => { if (showPagination) { - const pageResult = Array.isArray(data) ? { list: data, total: 0 } : data; - pagination.total = pageResult?.total ?? 0; - pageData.value = pageResult?.list ?? []; + pagination.total = (data as any)?.total ?? 0; + pageData.value = (data as any)?.list ?? []; } else { pageData.value = Array.isArray(data) ? data : (data?.list ?? (data as any)?.data ?? []); }