fix: 修复创建性能测试页面,按迭代次数点击没反应

This commit is contained in:
Captain.B 2021-01-22 16:15:04 +08:00
parent 14b21ca544
commit 9025f42876
1 changed files with 7 additions and 2 deletions

View File

@ -291,7 +291,7 @@ export default {
},
fileChange(threadGroups) {
let handler = this.$refs.pressureConfig;
handler.threadGroups = threadGroups;
threadGroups.forEach(tg => {
tg.threadNumber = tg.threadNumber || 10;
tg.duration = tg.duration || 10;
@ -301,8 +301,13 @@ export default {
tg.threadType = tg.threadType || 'DURATION';
tg.iterateNum = tg.iterateNum || 1;
tg.iterateRampUp = tg.iterateRampUp || 10;
handler.calculateChart(tg);
});
this.$set(handler, "threadGroups", threadGroups);
threadGroups.forEach(tg => {
handler.calculateChart(tg);
})
}
}
}