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 7bffbc80d1..fdcd73acff 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
@@ -110,7 +110,9 @@ public class MsScenario extends MsTestElement {
}
if (config != null && StringUtils.equals(this.getId(), config.getScenarioId())) {
config.setTransferVariables(this.variables);
- ElementUtil.setHeader(scenarioTree, this.headers, this.getName());
+ if (CollectionUtils.isNotEmpty(this.headers)) {
+ ElementUtil.setHeader(scenarioTree, this.headers, this.getName());
+ }
}
if (config != null && !config.getExcludeScenarioIds().contains(this.getId())) {
scenarioTree = MsCriticalSectionController.createHashTree(tree, this.getName(), this.isEnable());
diff --git a/api-test/frontend/src/business/automation/report/ApiReportDetail.vue b/api-test/frontend/src/business/automation/report/ApiReportDetail.vue
index 4eae2dbf7b..d1e1dada80 100644
--- a/api-test/frontend/src/business/automation/report/ApiReportDetail.vue
+++ b/api-test/frontend/src/business/automation/report/ApiReportDetail.vue
@@ -703,6 +703,9 @@ export default {
}
}
}
+ if(this.content.scenarios && this.content.scenarios[0].requestResults){
+ this.content.scenarios[0].requestResults.push({responseResult: {}});
+ }
this.reportExportVisible = true;
let reset = this.exportReportReset;
let name = this.report.name;
diff --git a/api-test/frontend/src/business/automation/report/ApiReportExport.vue b/api-test/frontend/src/business/automation/report/ApiReportExport.vue
index e3dda689e7..4c1b2b2812 100644
--- a/api-test/frontend/src/business/automation/report/ApiReportExport.vue
+++ b/api-test/frontend/src/business/automation/report/ApiReportExport.vue
@@ -9,62 +9,64 @@