mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
fix(接口测试): 场景报告导出内容有误
--bug=1026139 --user=宋昌昌 【测试跟踪】github#24366,导出场景报告,多次点击导出,导出页数增加 https://www.tapd.cn/55049933/s/1371297
This commit is contained in:
parent
f0b112ba0c
commit
b87a832882
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user