fix(接口测试): 场景报告导出内容有误

--bug=1026139 --user=宋昌昌 【测试跟踪】github#24366,导出场景报告,多次点击导出,导出页数增加 https://www.tapd.cn/55049933/s/1371297
This commit is contained in:
song-cc-rock 2023-05-15 11:22:35 +08:00 committed by 刘瑞斌
parent f0b112ba0c
commit b87a832882

View File

@ -756,6 +756,8 @@ export default {
},
startExport() {
if (this.report.reportVersion && this.report.reportVersion > 1) {
// , #771;
this.content.scenarios = [];
if (this.report.reportType === 'API_INTEGRATED' || this.report.reportType === 'UI_INTEGRATED') {
let scenario = { name: '', requestResults: [] };
this.content.scenarios = [scenario];