diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index 0523361826..7c15a8ad22 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -214,7 +214,7 @@ name: "TestCaseMinder", listenBeforeExecCommand((even) => { if (even.commandName === 'expandtolevel') { let level = Number.parseInt(even.commandArgs); - handleExpandToLevel(level, even.minder.getRoot(), this.getParam(), getTestCasesForMinder); + handleExpandToLevel(level, even.minder.getRoot(), this.getParam(), getTestCasesForMinder, null, getMinderExtraNode); } if (handleMinderIssueDelete(even.commandName)) return; // 删除缺陷不算有编辑脑图信息 diff --git a/frontend/src/business/components/track/common/minder/minderUtils.js b/frontend/src/business/components/track/common/minder/minderUtils.js index a769fcc62e..ffbca5301f 100644 --- a/frontend/src/business/components/track/common/minder/minderUtils.js +++ b/frontend/src/business/components/track/common/minder/minderUtils.js @@ -107,14 +107,13 @@ export function loadSelectNodes(param, getCaseFuc, setParamCallback, getExtraNod }); } - -export function handleExpandToLevel(level, node, param, getCaseFuc, setParamCallback) { - loadNode(node, param, getCaseFuc, setParamCallback); +export function handleExpandToLevel(level, node, param, getCaseFuc, setParamCallback, getExtraNodeFuc) { + loadNode(node, param, getCaseFuc, setParamCallback, getExtraNodeFuc); level--; if (level > 0) { if (node.children) { node.children.forEach(item => { - handleExpandToLevel(level, item, param, getCaseFuc, setParamCallback); + handleExpandToLevel(level, item, param, getCaseFuc, setParamCallback, getExtraNodeFuc); }); } }