From a7aa763e3775894657da25c383624bfd9025b65a Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 17 Aug 2021 18:46:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=97=B6=E9=A1=B5=E7=A0=81=E8=B7=B3=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataTable/compenents/el-data-table/el-data-table.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DataTable/compenents/el-data-table/el-data-table.vue b/src/components/DataTable/compenents/el-data-table/el-data-table.vue index a89c013bc..d22b92817 100644 --- a/src/components/DataTable/compenents/el-data-table/el-data-table.vue +++ b/src/components/DataTable/compenents/el-data-table/el-data-table.vue @@ -840,7 +840,7 @@ export default { this.$emit('selection-change', val) }, totalData(val) { - if (val) { + if (val && val.length !== this.total) { this.page = defaultFirstPage this.total = val.length this.getList()