natasha 3 дней назад
Родитель
Сommit
53df25ae26
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/views/book/courseware/create/components/question/article/CheckStyle.vue

+ 4 - 1
src/views/book/courseware/create/components/question/article/CheckStyle.vue

@@ -38,7 +38,10 @@
                 :class="[/^[0-9]*$/.test(items.text)] ? (/^[\u4e00-\u9fa5]/.test(items.text) ? 'hanzi' : 'en') : ''"
                 :class="[/^[0-9]*$/.test(items.text)] ? (/^[\u4e00-\u9fa5]/.test(items.text) ? 'hanzi' : 'en') : ''"
                 :style="{
                 :style="{
                   fontFamily: items.fontFamily,
                   fontFamily: items.fontFamily,
-                  color: items.color,
+                  color:
+                    batchList.findIndex((itemss) => itemss.saveIndex === items.saveIndex) > -1
+                      ? '#F2555A'
+                      : items.color,
                   textDecoration: items.textDecoration,
                   textDecoration: items.textDecoration,
                   borderBottom: items.border === 'dotted' ? '1px dotted' : '',
                   borderBottom: items.border === 'dotted' ? '1px dotted' : '',
                   fontWeight: items.fontWeight,
                   fontWeight: items.fontWeight,