mirror of
https://github.com/568071718/creator-collection-view
synced 2025-12-08 13:48:50 +00:00
尝试修复 reloadData 调用时机不对导致的错误
This commit is contained in:
@@ -918,7 +918,7 @@ export class YXCollectionView extends Component {
|
|||||||
* 刷新列表数据
|
* 刷新列表数据
|
||||||
*/
|
*/
|
||||||
reloadData() {
|
reloadData() {
|
||||||
if (this.node.activeInHierarchy && this.node.parent) {
|
if (this.node != null && this.node.activeInHierarchy && this.node.parent && this.layout != null) {
|
||||||
this._reloadData()
|
this._reloadData()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
"uuid": "d21c5c56-bc81-481d-b241-7ce394501071",
|
"uuid": "d21c5c56-bc81-481d-b241-7ce394501071",
|
||||||
"creator": {
|
"creator": {
|
||||||
"version": "3.8.0"
|
"version": "3.8.0"
|
||||||
}
|
},
|
||||||
|
"description": "开源版本"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user