feat(性能测试): 修复报告显示线程组重复的bug
This commit is contained in:
parent
d6b73f1305
commit
5595110c1c
|
@ -258,13 +258,15 @@ export default {
|
|||
if (!this.report.testId) {
|
||||
return;
|
||||
}
|
||||
let threadGroups = [];
|
||||
this.result = this.$get('/performance/get-jmx-content/' + this.report.testId, (response) => {
|
||||
response.data.forEach(d => {
|
||||
this.threadGroups = this.threadGroups.concat(findThreadGroup(d.jmx, d.name));
|
||||
this.threadGroups.forEach(tg => {
|
||||
threadGroups = threadGroups.concat(findThreadGroup(d.jmx, d.name));
|
||||
threadGroups.forEach(tg => {
|
||||
tg.options = {};
|
||||
});
|
||||
});
|
||||
this.threadGroups = threadGroups;
|
||||
this.getLoadConfig();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue