lsc 2 years ago
parent
commit
1be64a3ee5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/student/studyStudent.vue

+ 1 - 1
src/components/student/studyStudent.vue

@@ -246,7 +246,7 @@
                   @click="checkFileFull(chapterlist[chapterIndex].type, chapterlist[chapterIndex].src)">全屏查看</el-button>
                 <el-button type="primary" @click="downloadFile(chapterlist[chapterIndex].src)">文件下载</el-button>
               </div>
-              <div style="padding: 10px 30px 0" v-if="chapterlist[chapterIndex].type == 8">
+              <div style="padding: 10px 30px 0" v-if="chapterlist[chapterIndex] && chapterlist[chapterIndex].type == 8">
                 <el-button type="primary"
                   @click="openLine(chapterlist[chapterIndex].src)">打开链接
                 </el-button>