Pārlūkot izejas kodu

增加 NEW 的解析

dusenyao 1 gadu atpakaļ
vecāks
revīzija
ab42927b80

+ 5 - 0
src/components/course/CompletionView.vue

@@ -152,6 +152,11 @@ export default {
               this.context = JSON.parse(content);
               return;
             }
+
+            if (category === 'NEW') {
+              this.context = JSON.parse(content);
+              return;
+            }
           }
         );
       });

+ 5 - 0
src/components/course/FinishCourseware.vue

@@ -142,6 +142,11 @@ export default {
             this.context = JSON.parse(content);
             return;
           }
+
+          if (category === 'NEW') {
+            this.context = JSON.parse(content);
+            return;
+          }
         }
       );
     }

+ 5 - 0
src/components/live/CurMaterial.vue

@@ -301,6 +301,11 @@ export default {
             this.context = JSON.parse(content);
             return;
           }
+
+          if (category === 'NEW') {
+            this.context = JSON.parse(content);
+            return;
+          }
         })
         .then(() => {
           if (this.isFinished && !this.isCurMaterial) {

+ 5 - 0
src/components/preview/PreviewCourse.vue

@@ -162,6 +162,11 @@ function getCoursewareContent_View() {
         context.value = JSON.parse(content);
         return;
       }
+
+      if (category.value === 'NEW') {
+        context.value = JSON.parse(content);
+        return;
+      }
     }
   );
 }

+ 5 - 0
src/views/live/teacher/CompleteList.vue

@@ -292,6 +292,11 @@ export default {
             this.context = JSON.parse(content);
             return;
           }
+
+          if (category === 'NEW') {
+            this.context = JSON.parse(content);
+            return;
+          }
         }
       );
     },

+ 5 - 0
src/views/new_live/teacher/components/CompleteList.vue

@@ -292,6 +292,11 @@ export default {
             this.context = JSON.parse(content);
             return;
           }
+
+          if (category === 'NEW') {
+            this.context = JSON.parse(content);
+            return;
+          }
         }
       );
     },

+ 5 - 0
src/views/task_details/ShowCourseware.vue

@@ -98,6 +98,11 @@ export default {
           this.context = JSON.parse(content);
           return;
         }
+
+        if (category === 'NEW') {
+          this.context = JSON.parse(content);
+          return;
+        }
       }
     );
   },