From 924e0bdee0e5ba55fab291b9fb98a3c50c7ede5e Mon Sep 17 00:00:00 2001
From: chensiAb <chenchenco03@163.com>
Date: Thu, 28 Nov 2024 14:56:22 +0800
Subject: [PATCH] fix:tools千分位-小数位处理

---
 plugins/infiniteScroll/CInfiniteScroll.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugins/infiniteScroll/CInfiniteScroll.vue b/plugins/infiniteScroll/CInfiniteScroll.vue
index 4dcd65e..72bb052 100644
--- a/plugins/infiniteScroll/CInfiniteScroll.vue
+++ b/plugins/infiniteScroll/CInfiniteScroll.vue
@@ -141,6 +141,7 @@
                             // 没有数据
                             if (!options.pageTotal || options.pageTotal <= 0) {
                                 this.ending = true;
+                                this.pageTotal = 0;
                             }
                             // 有数据
                             else {
@@ -163,6 +164,8 @@
                     // 加载失败
                     fail: () => {
                         this.loading = false;
+                        this.ending = true;
+                        this.pageTotal = 0;
                         // 如果下拉刷新,还原下拉
                         if (this.touch.dargState === 2) {
                             this.touch.driftTop = 0;

--
Gitblit v1.9.1