Parcourir la source

拼音标点符号不过滤

zq il y a 3 semaines
Parent
commit
b664355c7d

+ 1 - 1
src/views/book/courseware/create/components/base/rich_text/RichText.vue

@@ -134,7 +134,7 @@ export default {
                   originalItem &&
                   originalItem.hash === this.hashText(newItem.text) &&
                   originalItem.id === `p${i}-l${j}-i${k}`;
-
+                if (!newItem.pinyin) newItem.pinyin = newItem.text;
                 return {
                   ...newItem,
                   id: `p${i}-l${j}-i${k}`,