diff --git a/test-track/frontend/src/business/common/minder/MsModuleMinder.vue b/test-track/frontend/src/business/common/minder/MsModuleMinder.vue index d71d957ed5..c9871406ea 100644 --- a/test-track/frontend/src/business/common/minder/MsModuleMinder.vue +++ b/test-track/frontend/src/business/common/minder/MsModuleMinder.vue @@ -240,6 +240,9 @@ export default { } children.forEach((item) => { + if (!item.id) { + return; + } let node = { data: { text: item.name, diff --git a/test-track/frontend/src/business/common/minder/minderUtils.js b/test-track/frontend/src/business/common/minder/minderUtils.js index 34311d8be6..dfb5b977ad 100644 --- a/test-track/frontend/src/business/common/minder/minderUtils.js +++ b/test-track/frontend/src/business/common/minder/minderUtils.js @@ -68,7 +68,7 @@ export function loadNode(node, param, getCaseFuc, setParamCallback, getExtraNode // 加载用例 getCaseFuc(request, (testCases) => { initNodeCase(node, testCases, param, setParamCallback); - if (getExtraNodeFuc) { + if (getExtraNodeFuc && data.id) { param.result.loading = true; // 加载临时节点 getExtraNodeFuc(getCurrentProjectID(), data.id)