|
@@ -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}>`})
|