Tree: fix lazyload bug

pull/5962/head
Dreamacro 2017-07-20 14:15:12 +08:00 committed by 杨奕
parent cdd4aa7a8b
commit 79d1ff06f6
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {