Quellcode durchsuchen

注释的思维导图去掉富文本

natasha vor 3 Tagen
Ursprung
Commit
fb49e41f0d

+ 1 - 1
src/views/book/courseware/create/components/question/notes/Notes.vue

@@ -97,7 +97,7 @@ export default {
       let node_list = [];
       this.data.option.forEach((item) => {
         node_list.push({
-          name: item.con,
+          name: item.con.replace(/<[^>]*>?/gm, ''),
           id: Math.random().toString(36).substring(2, 12),
         });
       });