Commit c89782fb authored by “yiyousong”'s avatar “yiyousong”

fix: 修复报表配置列表偶尔报错的问题

parent 196f83f7
...@@ -264,8 +264,12 @@ export default { ...@@ -264,8 +264,12 @@ export default {
}, },
filterModel(modelId) { filterModel(modelId) {
let modelName = "--";
let curModel = this.modelData.find((item) => item.id === modelId); let curModel = this.modelData.find((item) => item.id === modelId);
return curModel.modelName || "--"; if (curModel) {
modelName = curModel.modelName;
}
return modelName;
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment