Merge remote-tracking branch 'origin/master'

This commit is contained in:
song.tianyang 2021-03-05 18:14:30 +08:00
commit da90a08e46
1 changed files with 4 additions and 2 deletions

View File

@ -258,13 +258,15 @@ export default {
if (!this.report.testId) { if (!this.report.testId) {
return; return;
} }
let threadGroups = [];
this.result = this.$get('/performance/get-jmx-content/' + this.report.testId, (response) => { this.result = this.$get('/performance/get-jmx-content/' + this.report.testId, (response) => {
response.data.forEach(d => { response.data.forEach(d => {
this.threadGroups = this.threadGroups.concat(findThreadGroup(d.jmx, d.name)); threadGroups = threadGroups.concat(findThreadGroup(d.jmx, d.name));
this.threadGroups.forEach(tg => { threadGroups.forEach(tg => {
tg.options = {}; tg.options = {};
}); });
}); });
this.threadGroups = threadGroups;
this.getLoadConfig(); this.getLoadConfig();
}); });
}, },