natasha пре 1 месец
родитељ
комит
65b07864d8
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/views/book/courseware/create/components/question/table/Table.vue

+ 3 - 3
src/views/book/courseware/create/components/question/table/Table.vue

@@ -412,9 +412,9 @@ export default {
       this.editCellFlag = true;
     },
     // 设置样式
-    BatchSetFormat(type, val = '') {
+    BatchSetFormat(text, val = '') {
       this.$refs.richText.forEach((richText) => {
-        richText.setRichFormat(type, val);
+        richText.setRichFormat(text, val, true);
       });
     },
     // 识别文本
@@ -448,7 +448,7 @@ export default {
                       audio_answer_list: [],
                     });
                     inputIndex += 1;
-                    items.hasInput = true;
+                    this.$set(items, 'hasInput', true);
                   }
                 });
                 // // 去除所有的 font-size 样式