fix(性能测试): 修复报告页面偶尔出现弹框报错的问题

--bug=1011382 --user=刘瑞斌 【性能测试】 -首次执行后,点击再次执行页面会出现报错提示 https://www.tapd.cn/55049933/s/1124718

Closes #11601
This commit is contained in:
CaptainB 2022-03-23 18:12:17 +08:00 committed by 刘瑞斌
parent 17ad0c08bf
commit e5c7d4bd3c
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ export default {
},
handleGetLogResourceDetail(data, resourceId) {
data.listObject.forEach(log => {
this.logContent[resourceId].push(log);
if (this.logContent[resourceId]) {
this.logContent[resourceId].push(log);
}
});
this.page[resourceId]++;
this.loading = false;