fix(性能测试): 修复上传测试文件偶尔会传多个的bug

This commit is contained in:
Captain.B 2021-03-31 12:22:14 +08:00
parent e0461fda3b
commit 71c512174d
1 changed files with 4 additions and 5 deletions

View File

@ -173,11 +173,12 @@ export default {
updateTime: row.lastModified,
});
}
//
rows.forEach(row => {
this.fileList.push(row);
})
if (this.loadType === 'resource') {
rows.forEach(row => {
this.fileList.push(row);
})
this.$success(this.$t('test_track.case.import.success'));
this.close();
return;
@ -197,8 +198,6 @@ export default {
tg.options = {};
this.scenarios.push(tg);
});
let file = new File([d.jmx], d.name);
this.uploadList.push(file);
});
this.$emit('fileChange', this.scenarios);