|
@@ -282,9 +282,9 @@ export function backspaceText(state,action){
|
|
|
res[data[delIndex-1].formulaCode]=undefined;
|
|
|
}
|
|
|
handleLocalDelTag(3,delIndex-1,data[delIndex-1]); //记录被删除的标签
|
|
|
- data.splice(delIndex-1,action.text.length>0?1:2);
|
|
|
- res.selecteds.splice(delIndex-1,action.text.length>0?1:2); //杂音类样式选中状态对应
|
|
|
- res.saveText.splice(delIndex-1,action.text.length>0?1:2);
|
|
|
+ data.splice(delIndex-1,action.text.length>0&&(config.punctuationReg.test(action.text))?1:2);
|
|
|
+ res.selecteds.splice(delIndex-1,action.text.length>0&&(config.punctuationReg.test(action.text))?1:2); //杂音类样式选中状态对应
|
|
|
+ res.saveText.splice(delIndex-1,action.text.length>0&&(config.punctuationReg.test(action.text))?1:2);
|
|
|
}
|
|
|
}else if(flag == 'del'){
|
|
|
if(data[delIndex+1] && data[delIndex+1].flag&&data[delIndex+1].flag==3){//子模板不删
|