diff --git a/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java b/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java index e880362bab..a36b4ff3d7 100644 --- a/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java +++ b/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java @@ -134,7 +134,9 @@ public class HistoricalDataUpgradeService { request1.getBody().setType(Body.FORM_DATA); } if ("json".equals(request1.getBody().getFormat())) { - request1.getBody().setType(Body.JSON); + if ("Raw".equals(request1.getBody().getType())) { + request1.getBody().setType(Body.JSON); + } if (CollectionUtils.isEmpty(request1.getHeaders())) { List headers = new LinkedList<>(); headers.add(new KeyValue("Content-Type", "application/json")); diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index bc6f32603c..0c14e36851 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -137,7 +137,7 @@
- >> .el-tree-node__expand-icon.expanded { - color: #7C3985; + .ms-tree >>> .el-tree-node__expand-icon.expanded { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); } - .ms-el-icon-caret-right .el-icon-caret-right { - color: #7C3985; + .ms-tree >>> .el-icon-caret-right:before { + content: '\e723'; + font-size: 18px; } - .ms-is-leaf >>> .is-leaf { + .ms-tree >>> .el-tree-node__expand-icon.is-leaf { color: transparent; } + + .ms-tree >>> .el-tree-node__expand-icon { + color: #7C3985; + } + + .ms-tree >>> .el-tree-node__expand-icon.expanded.el-icon-caret-right:before { + color: #7C3985; + content: "\e722"; + font-size: 18px; + } diff --git a/frontend/src/business/components/api/definition/components/request/database/BasisParameters.vue b/frontend/src/business/components/api/definition/components/request/database/BasisParameters.vue index 79792f9145..11f2824c06 100644 --- a/frontend/src/business/components/api/definition/components/request/database/BasisParameters.vue +++ b/frontend/src/business/components/api/definition/components/request/database/BasisParameters.vue @@ -64,22 +64,22 @@
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -225,6 +225,9 @@ if (!hasEnvironment) { this.request.environmentId = undefined; } + if (!this.request.environmentId) { + this.request.dataSourceId = undefined; + } this.initDataSource(); }); },