fix(接口测试): 修复多层嵌套场景中间层级调试结果显示问题

--bug=1028484 --user=赵勇 【接口测试】多层嵌套场景调试中间层级未更新步骤结果 https://www.tapd.cn/55049933/s/1401819

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-08-08 17:12:20 +08:00 committed by fit2-zhao
parent 4e2e2460c9
commit a00f87bcdd
2 changed files with 5 additions and 4 deletions

View File

@ -1790,6 +1790,11 @@ export default {
scenario = runScenario;
this.runScenario = runScenario;
}
if (runScenario && runScenario.type === 'scenario' && !hasRequest) {
this.sort(this.runScenario.hashTree);
} else {
this.sort();
}
//
this.debugData = {
id: scenario ? scenario.id : this.currentScenario.id,

View File

@ -454,10 +454,6 @@ export default {
selectEnvId = store.scenarioEnvMap.get(this.currentScenario.id + '_' + this.request.projectId);
this.environmentMap = this.envMap;
}
if (!selectEnvId && !this.environmentGroupId) {
this.$warning(this.$t('api_test.automation.env_message'));
return false;
}
}
}
if (!this.request.enable) {