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, ScenarioStepType.TEST_PLAN_API_CASE,
]); ]);
const innerNumber = ref<number>(0);
/** /**
* 处理步骤展开折叠 * 处理步骤展开折叠
*/ */
@ -256,12 +254,13 @@
if (isNotAllowExpand && data.node && data.node.children) { if (isNotAllowExpand && data.node && data.node.children) {
data.node.stepChildren = cloneDeep(data.node.children); data.node.stepChildren = cloneDeep(data.node.children);
data.node.children = []; data.node.children = [];
} } else {
const realStep = findNodeByKey<ScenarioItemType>(steps.value, data.node?.stepId, 'stepId'); const realStep = findNodeByKey<ScenarioItemType>(steps.value, data.node?.stepId, 'stepId');
if (realStep) { if (realStep) {
realStep.expanded = !realStep.expanded; realStep.expanded = !realStep.expanded;
} }
} }
}
const selectedKeys = ref<(string | number)[]>([]); const selectedKeys = ref<(string | number)[]>([]);
const focusStepKey = ref<string>(''); const focusStepKey = ref<string>('');