natasha 9 months ago
parent
commit
64a3f6b718
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/views/book/courseware/preview/components/notes/NotesPreview.vue

+ 11 - 0
src/views/book/courseware/preview/components/notes/NotesPreview.vue

@@ -52,6 +52,17 @@ export default {
       wordShow: false,
     };
   },
+  watch: {
+    data: {
+      handler(val) {
+        if (val) {
+          this.wordShow = isEnable(this.data.property.is_word_show);
+        }
+      },
+      deep: true,
+      immediate: true,
+    },
+  },
   computed: {},
   created() {},
   methods: {