fix: 修复创建性能测试查询文件的提示,计算图表不去单个计算

This commit is contained in:
Captain.B 2021-03-24 09:55:08 +08:00
parent 3cc4c181b8
commit d2fabf8e93
2 changed files with 3 additions and 5 deletions

View File

@ -345,13 +345,11 @@ export default {
this.$refs.basicConfig.threadGroups = threadGroups; this.$refs.basicConfig.threadGroups = threadGroups;
this.$refs.pressureConfig.threadGroups = threadGroups; this.$refs.pressureConfig.threadGroups = threadGroups;
threadGroups.forEach(tg => { handler.calculateTotalChart();
handler.calculateChart(tg);
})
}, },
tgTypeChange(threadGroup) { tgTypeChange(threadGroup) {
let handler = this.$refs.pressureConfig; let handler = this.$refs.pressureConfig;
handler.calculateChart(threadGroup); handler.calculateTotalChart();
} }
} }
} }

View File

@ -232,7 +232,7 @@ export default {
callback(); callback();
} else { } else {
this.$error(this.$t('load_test.project_file_exist')); this.$error(this.$t('load_test.project_file_exist') + ', name: ' + file.name);
} }
}); });
}, },