From a36085c2ee88755c8e0ae58205922a77d286436e Mon Sep 17 00:00:00 2001 From: "aoli.qu" <408346101@qq.com> Date: Mon, 23 Aug 2021 16:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Table/index.js b/src/components/Table/index.js index 9021865..a9301ca 100644 --- a/src/components/Table/index.js +++ b/src/components/Table/index.js @@ -157,13 +157,13 @@ export default { result.then(r => { this.localPagination = this.showPagination && Object.assign({}, this.localPagination, { current: r.pageNo, // 返回结果中的当前分页数 - total: r.entityCount, // 返回结果中的总记录数 + total: r.total, // 返回结果中的总记录数 showSizeChanger: this.showSizeChanger, pageSize: (pagination && pagination.pageSize) || this.localPagination.pageSize }) || false // 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页 - if (r.entities.length === 0 && this.showPagination && this.localPagination.current > 1) { + if (r.rows.length === 0 && this.showPagination && this.localPagination.current > 1) { this.localPagination.current-- this.loadData() return