From 4a7a6e06e19c6161cc9682cce37a9d817bd5e34e Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Tue, 24 May 2022 13:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=AE=A1=E7=90=86crud=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Crud/crud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index bf85f50..ccc05c7 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -139,7 +139,7 @@ function CRUD(options) { table.store.states.treeData = {} table.store.states.lazyTreeNodeMap = {} } - crud.page.total = data.totalElements ? data.totalElements : data.length + crud.page.total = data.totalElements !== null ? data.totalElements : data.length crud.data = data.content ? data.content : data crud.resetDataStatus() // time 毫秒后显示表格