diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/MsScenario.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/MsScenario.java index 2937ff1260..0b422adfe5 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/MsScenario.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/MsScenario.java @@ -230,7 +230,7 @@ public class MsScenario extends MsTestElement { orgJSONArray.forEach(obj -> { JSONObject orgJsonObject = (JSONObject) obj; hashTree.forEach(targetObj -> { - if (StringUtils.equals(orgJsonObject.optString(MsHashTreeService.ID), targetObj.getId())) { + if (StringUtils.equals(orgJsonObject.optString(MsHashTreeService.RESOURCE_ID), targetObj.getResourceId())) { setRefEnable(targetObj, orgJsonObject); } }); diff --git a/api-test/frontend/src/business/automation/scenario/component/LoopController.vue b/api-test/frontend/src/business/automation/scenario/component/LoopController.vue index 2bb8696dad..31329bb3be 100644 --- a/api-test/frontend/src/business/automation/scenario/component/LoopController.vue +++ b/api-test/frontend/src/business/automation/scenario/component/LoopController.vue @@ -328,7 +328,7 @@ export default { debugCode(data) { if (data && this.node && this.node.data) { if (data.error > 0) { - this.node.data.code = 'error'; + this.node.data.code = 'Error'; } else { this.node.data.code = this.node.data.code !== 'ERROR' ? 'Success' : 'Error'; } diff --git a/api-test/frontend/src/business/automation/scenario/component/TransactionController.vue b/api-test/frontend/src/business/automation/scenario/component/TransactionController.vue index c595a12b92..62f44768f1 100644 --- a/api-test/frontend/src/business/automation/scenario/component/TransactionController.vue +++ b/api-test/frontend/src/business/automation/scenario/component/TransactionController.vue @@ -133,9 +133,9 @@ export default { getCode() { if (this.node && this.node.data.code && this.node.data.debug) { if (this.node.data.code && this.node.data.code === 'ERROR') { - return 'error'; + return 'Error'; } else { - return 'success'; + return 'Success'; } } return '';