소스 검색

添加判断

wolyshaw 4 년 전
부모
커밋
3c10e315d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/teamDetail/componentCourse/teacherList.vue

+ 1 - 1
src/views/teamDetail/componentCourse/teacherList.vue

@@ -91,7 +91,7 @@
                        label="签退照片">
         <template slot-scope="scope">
           <el-image
-            v-if="scope.row.teacherAttendance.signOutAttachments"
+            v-if="scope.row.teacherAttendance && scope.row.teacherAttendance.signOutAttachments"
             style="width: 60px; height: 60px"
             fit="cover"
             :src="scope.row.teacherAttendance.signOutAttachments"