@@ -67,7 +67,7 @@
if(res.data.code!==0) return this.$showToast(res.data.msg)
this.list = res.data.data;
this.list.forEach(l=>{
- l.roleModelName = this.modelMap.get(l.agent.systemPrompt).agentName;
+ l.roleModelName = this.modelMap.get(l?.agent?.systemPrompt)?.agentName;
})
},
@@ -59,7 +59,7 @@