From a2e8438bd1f2424fd3a6e4c4571ef2305adad3b8 Mon Sep 17 00:00:00 2001 From: "o.o.c." <568071718@qq.com> Date: Sat, 6 Dec 2025 15:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=20reloadDa?= =?UTF-8?q?ta=20=E8=B0=83=E7=94=A8=E6=97=B6=E6=9C=BA=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- list-3x/assets/lib/yx-collection-view.ts | 2 +- list-3x/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/list-3x/assets/lib/yx-collection-view.ts b/list-3x/assets/lib/yx-collection-view.ts index cef975e..48fdb6e 100644 --- a/list-3x/assets/lib/yx-collection-view.ts +++ b/list-3x/assets/lib/yx-collection-view.ts @@ -918,7 +918,7 @@ export class YXCollectionView extends Component { * 刷新列表数据 */ reloadData() { - if (this.node.activeInHierarchy && this.node.parent) { + if (this.node != null && this.node.activeInHierarchy && this.node.parent && this.layout != null) { this._reloadData() return } diff --git a/list-3x/package.json b/list-3x/package.json index 0b3fbe1..608090f 100755 --- a/list-3x/package.json +++ b/list-3x/package.json @@ -3,5 +3,6 @@ "uuid": "d21c5c56-bc81-481d-b241-7ce394501071", "creator": { "version": "3.8.0" - } + }, + "description": "开源版本" }