refactor(接口测试): 场景步骤代码优化

This commit is contained in:
fit2-zhao 2022-06-22 14:07:33 +08:00 committed by f2c-ci-robot[bot]
parent a63562b21c
commit 20638dbe6e
1 changed files with 1 additions and 2 deletions

View File

@ -1248,7 +1248,6 @@ export default {
step.index = !isGeneric ? Number(i) + 1 : step.index; step.index = !isGeneric ? Number(i) + 1 : step.index;
if (step.type === 'GenericController') { if (step.type === 'GenericController') {
this.pluginOrder(step); this.pluginOrder(step);
isGeneric = true;
} }
step.resourceId = step.resourceId || getUUID(); step.resourceId = step.resourceId || getUUID();
// //
@ -1270,7 +1269,7 @@ export default {
// debug // debug
step.parentIndex = fullPath ? fullPath + "_" + step.index : step.index; step.parentIndex = fullPath ? fullPath + "_" + step.index : step.index;
if (step.hashTree && step.hashTree.length > 0) { if (step.hashTree && step.hashTree.length > 0) {
this.recursionStep(step.hashTree, step.projectId, step.parentIndex, isGeneric); this.recursionStep(step.hashTree, step.projectId, step.parentIndex, step.type === 'GenericController');
} }
} }
}, },