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>