Commit 79d1ff06 authored by Dreamacro's avatar Dreamacro Committed by 杨奕

Tree: fix lazyload bug

parent cdd4aa7a
......@@ -370,7 +370,7 @@ export default class Node {
}
loadData(callback, defaultProps = {}) {
if (this.store.lazy === true && this.store.load && !this.loaded && !this.loading) {
if (this.store.lazy === true && this.store.load && !this.loaded && (!this.loading || Object.keys(defaultProps).length)) {
this.loading = true;
const resolve = (children) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment