fix(接口测试): 修复接口测试重定向子级数据不展示

This commit is contained in:
xinxin.wu 2024-06-25 19:55:20 +08:00 committed by 刘瑞斌
parent 4f327535b4
commit 65e43c4d09
1 changed files with 5 additions and 6 deletions

View File

@ -245,8 +245,6 @@
ScenarioStepType.TEST_PLAN_API_CASE,
]);
const innerNumber = ref<number>(0);
/**
* 处理步骤展开折叠
*/
@ -256,10 +254,11 @@
if (isNotAllowExpand && data.node && data.node.children) {
data.node.stepChildren = cloneDeep(data.node.children);
data.node.children = [];
}
const realStep = findNodeByKey<ScenarioItemType>(steps.value, data.node?.stepId, 'stepId');
if (realStep) {
realStep.expanded = !realStep.expanded;
} else {
const realStep = findNodeByKey<ScenarioItemType>(steps.value, data.node?.stepId, 'stepId');
if (realStep) {
realStep.expanded = !realStep.expanded;
}
}
}