fix(接口测试): 修复接口测试重定向子级数据不展示
This commit is contained in:
parent
4f327535b4
commit
65e43c4d09
|
@ -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>('');
|
||||||
|
|
Loading…
Reference in New Issue