fix(性能测试): 性能测试创建新版本时偶报undefined的问题

This commit is contained in:
CaptainB 2022-01-14 13:25:48 +08:00 committed by 刘瑞斌
parent cf5c0a6c03
commit 99b670d100
1 changed files with 5 additions and 1 deletions

View File

@ -748,7 +748,11 @@ export default {
return tg.duration; return tg.duration;
}, },
getRatios(tg) { getRatios(tg) {
return tg.resourceNodes.map(node => node.ratio); if (tg.resourceNodes) {
return tg.resourceNodes.map(node => node.ratio);
} else {
return [];
}
}, },
convertProperty() { convertProperty() {
/// todo4jmeter ConcurrencyThreadGroup plugin /// todo4jmeter ConcurrencyThreadGroup plugin