Update node.js

this.data可能为undefined,需要判断一下
This commit is contained in:
wangjingf
2018-06-04 10:38:02 +08:00
committed by GitHub
parent 87d591c356
commit eaba784667

View File

@@ -111,7 +111,7 @@ export default class Node {
} else if (this.level > 0 && store.lazy && store.defaultExpandAll) {
this.expand();
}
if (!Array.isArray(this.data)) {
if (this.data && !Array.isArray(this.data)) {
markNodeData(this, this.data);
}
if (!this.data) return;