模块单元结构

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-26 16:32:38 +08:00
parent 7c1f913851
commit 83685a3fd0
+3 -3
View File
@@ -175,7 +175,7 @@
if (node.level >= 1) {
setTimeout(() => {
this.getChildByList(node.data.level,node.data.vppsCode, resolve);
this.getChildByList(node.data.level,node.data.nextCondition, resolve);
}, 500);
return resolve([]); // 加上这个,防止在该节点没有子节点时一直转圈的问题发生。
}
@@ -192,8 +192,8 @@
}
})
},
getChildByList( level,vppsCode,resolve) { // 获取子节点请求
let params = {level : level,vppsCode :vppsCode,type : this.type};
getChildByList( level,nextCondition,resolve) { // 获取子节点请求
let params = {level : level,nextCondition :nextCondition,type : this.type};
this.$http.get(this.urlChild, params, {
_this: this
}, res => {