fix(接口测试): 修复场景步骤最大化移动顺序后调试不显示结果问题

--bug=1013836 --user=赵勇 [接口测试]-新建场景-关联接口case-全屏-选环境-拖拽第一个用例到其他位置-调试没结果 https://www.tapd.cn/55049933/s/1175024
This commit is contained in:
fit2-zhao 2022-06-07 15:26:28 +08:00 committed by fit2-zhao
parent 3126c0fc13
commit e437feee57
3 changed files with 40 additions and 34 deletions

View File

@ -728,6 +728,7 @@ public class ApiAutomationService {
Boolean enable = request.getEnvironmentEnable();
String scenarioDefinition = request.getDefinition();
JSONObject element = JSON.parseObject(scenarioDefinition, Feature.DisableSpecialKeyDetect);
try {
Map<String, String> environmentMap = new HashMap<>();
if (BooleanUtils.isFalse(enable)) {
String envType = request.getEnvironmentType();
@ -764,6 +765,9 @@ public class ApiAutomationService {
ElementUtil.dataSetDomain(element.getJSONArray("hashTree"), config);
}
return JSON.toJSONString(element);
} catch (Exception e) {
return scenarioDefinition;
}
}

View File

@ -336,6 +336,7 @@
@setCookieShare="setCookieShare"
@setSampleError="setSampleError"
@stop="stop"
@sort="sort"
@openScenario="openScenario"
@runScenario="runDebug"
@stopScenario="stop"

View File

@ -737,9 +737,10 @@ export default {
},
allowDrag(draggingNode, dropNode, dropType) {
if (dropNode && draggingNode && dropType) {
this.sort();
this.$emit("sort");
this.forceRerender();
this.cancelBatchProcessing();
}
},
nodeExpand(data) {