natasha 3 yıl önce
ebeveyn
işleme
0a68f93b96
3 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 2 2
      src/views/bookView.vue
  2. 2 2
      src/views/courseView.vue
  3. 1 1
      src/views/input.vue

+ 2 - 2
src/views/bookView.vue

@@ -43,7 +43,7 @@
             inactive-text="生词模式"
           /> -->
         </div>
-        <template v-if="category == 'oc' || !category">
+        <template v-if="category == 'OC' || !category">
           <Preview
             v-if="chapterId && context"
             ref="previewAnswer"
@@ -181,7 +181,7 @@ export default {
         this.themeColor = res.book_theme_color;
         if (res.content) {
           const _this = this;
-          if (!this.category || this.category == "oc") {
+          if (!this.category || this.category == "OC") {
             _this.context = {
               id: _this.chapterId,
               ui_type: JSON.parse(res.content).question

+ 2 - 2
src/views/courseView.vue

@@ -44,7 +44,7 @@
           />
         </div>
 
-        <template v-if="category == 'oc' || !category">
+        <template v-if="category == 'OC' || !category">
           <Preview
             v-if="chapterId && context"
             ref="previewAnswer"
@@ -190,7 +190,7 @@ export default {
         this.themeColor = res.book_theme_color;
         if (res.content) {
           const _this = this;
-          if (!this.category || this.category == "oc") {
+          if (!this.category || this.category == "OC") {
             _this.context = {
               id: _this.chapterId,
               ui_type: JSON.parse(res.content).question

+ 1 - 1
src/views/input.vue

@@ -1270,7 +1270,7 @@ export default {
         this.submitLoading = true;
         const MethodName = "book-courseware_manager-SaveCoursewareContent";
         const data = {
-          category: "oc",
+          category: "OC",
           id: _this.chapterId,
           ui_type: this.question ? this.question.ui_type : "ARTICLE",
           sort_number: 1,