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() {
|
||||
if (this.node.activeInHierarchy && this.node.parent) {
|
||||
if (this.node != null && this.node.activeInHierarchy && this.node.parent && this.layout != null) {
|
||||
this._reloadData()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user