Pārlūkot izejas kodu

集成链接eep预览数据

natasha 6 dienas atpakaļ
vecāks
revīzija
55fce58279
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/views/courseWare.vue

+ 4 - 1
src/views/courseWare.vue

@@ -117,7 +117,7 @@
         </template>
         <template v-if="category == 'EEP'">
           <BookEep
-            v-if="view_content.content && chapterId"
+            v-if="view_content && view_content.content && chapterId"
             :id="chapterId"
             :content="view_content.content"
             :content-group-row-list="view_content.content_group_row_list"
@@ -366,6 +366,9 @@ export default {
             } else {
               _this.context = JSON.parse(res.content);
             }
+            if (res.category === "EEP") {
+              this.view_content = res;
+            }
             setTimeout(() => {
               if (_this.ViewMode === "Answer") {
                 _this.$refs.previewBook.handleAnswerTimeStart();