Commit acdd4781 by yuananting

fix:修改教师名称字段是否返回的判断方法(?. => &&)

parent 70471ef1
...@@ -177,7 +177,7 @@ class LiveCourseList extends React.Component { ...@@ -177,7 +177,7 @@ class LiveCourseList extends React.Component {
</span> </span>
</div> </div>
<div className='teacher-assistant'> <div className='teacher-assistant'>
{record.teacherName?.length > 4 ? ( {record.teacherName && record.teacherName.length > 4 ? (
<Tooltip title={record.teacherName}> <Tooltip title={record.teacherName}>
<span className='teacher'>讲师:{record.teacherName}</span> <span className='teacher'>讲师:{record.teacherName}</span>
</Tooltip> </Tooltip>
......
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