From 6b202fcb9446a289d64dd1a36e881b688c9bb72b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 28 七月 2023 19:25:19 +0800 Subject: [PATCH] 2023-07-28 --- src/tabviews/custom/components/table/edit-table/index.jsx | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx index 6450750..fc305fe 100644 --- a/src/tabviews/custom/components/table/edit-table/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/index.jsx @@ -252,10 +252,15 @@ return item }) + let total = result.total || 0 + if (config.setting.custompage && data.length) { + total = data[data.length - 1].mk_total || 0 + } + this.setState({ data: data, selectedData: [], - total: result.total, + total: total, loading: false }) -- Gitblit v1.8.0