浏览代码

解决取消高亮异常问题

zhuliu 1 年之前
父节点
当前提交
53b26b1949
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/utils/model/RichText/mixins.js

+ 2 - 0
src/utils/model/RichText/mixins.js

@@ -166,6 +166,8 @@ export default {
                             if(prevTag.tag == `<${tag}>` && nextTag.tag == `</${tag}>`){
                                 if(prevTag.index != startIndex - 1){
                                     arr.push({type:'tag',text:`</${tag}>`})
+                                }else{
+                                    data[prevTag.index].del = true
                                 }
                                 arr.push({type:'text',text:item.text.substring(0,this.selectObj.endIndex - currentIndex)})
                                 arr.push({type:'tag',text:`<${tag}>`})