From cafa8f5583b400ae539e784e7cee3c5da3534127 Mon Sep 17 00:00:00 2001
From: chensiAb <chenchenco03@163.com>
Date: Wed, 26 Mar 2025 19:48:17 +0800
Subject: [PATCH] fix:上传图片组件-外部传入上传地址时优先使用外部地址

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

diff --git a/plugins/infiniteScroll/CInfiniteScroll.vue b/plugins/infiniteScroll/CInfiniteScroll.vue
index 4dcd65e..43faa2f 100644
--- a/plugins/infiniteScroll/CInfiniteScroll.vue
+++ b/plugins/infiniteScroll/CInfiniteScroll.vue
@@ -54,7 +54,7 @@
                 <text
                     class="c-infinite-empty"
                     v-else
-                >暂无数据...</text>
+                >(暂无数据)</text>
             </view>
         </view>
     </scroll-view>
@@ -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