lsc 2 年之前
父节点
当前提交
1be64a3ee5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>