fix(性能测试): 修复批量删除测试报告慢的问题

Closes #835
This commit is contained in:
Captain.B 2020-12-08 17:57:24 +08:00
parent 59c04230f1
commit 7e6a5f0a2c

View File

@ -241,14 +241,9 @@ export default {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
if (action === 'confirm') {
let ids = Array.from(this.selectRows).map(row => row.id);
this.result = this.$post('/performance/report/batch/delete', {ids: ids}, () => {
this.selectRows.clear();
this.$success(this.$t('commons.delete_success'));
this.search();
// 广 head
PerformanceEvent.$emit(LIST_CHANGE);
});
this.selectRows.forEach(row => {
this._handleDelete(row);
})
}
}
});