refactor(接口测试): 场景步骤排序顺序优化
This commit is contained in:
parent
7f6fefeea2
commit
0b97f4fc78
|
@ -1571,6 +1571,8 @@ export default {
|
|||
this.scenarioDefinition = obj.hashTree;
|
||||
}
|
||||
}
|
||||
|
||||
this.loading = false;
|
||||
if (this.currentScenario.copy) {
|
||||
this.path = "/api/automation/create";
|
||||
}
|
||||
|
@ -1584,11 +1586,10 @@ export default {
|
|||
}
|
||||
});
|
||||
}
|
||||
this.loading = false;
|
||||
// 初始化resourceId
|
||||
if (this.scenarioDefinition) {
|
||||
this.resetResourceId(this.scenarioDefinition);
|
||||
}
|
||||
this.sort();
|
||||
this.$nextTick(() => {
|
||||
this.cancelBatchProcessing();
|
||||
});
|
||||
// 记录初始化数据
|
||||
let v1 = {
|
||||
apiScenarioModuleId: this.currentScenario.apiScenarioModuleId,
|
||||
|
@ -1603,10 +1604,6 @@ export default {
|
|||
|
||||
this.currentScenario.scenarioDefinitionOrg = v1;
|
||||
this.currentScenario.scenarioDefinition = this.scenarioDefinition;
|
||||
this.$nextTick(() => {
|
||||
this.sort();
|
||||
this.cancelBatchProcessing();
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue