diff --git a/frontend/src/components/choose-ip/grade/index.vue b/frontend/src/components/choose-ip/grade/index.vue index 6fb0b1df5..dc6b6f835 100644 --- a/frontend/src/components/choose-ip/grade/index.vue +++ b/frontend/src/components/choose-ip/grade/index.vue @@ -1355,7 +1355,7 @@ async handleAsyncNodes (node, index, flag) { const chainLen = this.curChain.length; // 兼容如果是实例视图最后一个节点且child_type为空,则代表没有下一级不需要调接口 - if (!node.child_type && node.level + 1 >= chainLen) { + if (!node.childType && node.level + 1 >= chainLen) { node.expanded = false; node.async = false; this.emptyTreeData = formatCodeData(0, this.emptyData, true); diff --git a/frontend/src/components/choose-ip/index.vue b/frontend/src/components/choose-ip/index.vue index 7ccc76a77..59c623a25 100644 --- a/frontend/src/components/choose-ip/index.vue +++ b/frontend/src/components/choose-ip/index.vue @@ -1105,7 +1105,7 @@ console.log('handleAsyncNodes', node, index); const chainLen = this.curChain.length; // 兼容如果是实例视图最后一个节点且child_type为空,则代表没有下一级不需要调接口 - if (!node.child_type && node.level + 1 >= chainLen) { + if (!node.childType && node.level + 1 >= chainLen) { node.expanded = false; node.async = false; this.emptyTreeData = formatCodeData(0, this.emptyData, true);