提交 2e3332ef authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 72d48ecc
...@@ -20,7 +20,7 @@ const listOptions = { ...@@ -20,7 +20,7 @@ const listOptions = {
label: '授课教师', label: '授课教师',
prop: 'course_lectures', prop: 'course_lectures',
computed({ row }: { row: any }) { computed({ row }: { row: any }) {
return row.course_lectures?.map((item: any) => item.lecturer_name).join(',') return Array.isArray(row.course_lectures) ? row.course_lectures?.map((item: any) => item.lecturer_name).join(',') : row.course_lectures
} }
}, },
{ label: '课程描述', prop: 'course_represent', slots: 'table-desc' }, { label: '课程描述', prop: 'course_represent', slots: 'table-desc' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论