fix(性能测试): 修复上传测试文件偶尔会传多个的bug
This commit is contained in:
parent
e0461fda3b
commit
71c512174d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue