浏览代码

查体只有逗号一起删除合并

zhouna 5 年之前
父节点
当前提交
6f8cad5760
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/store/actions/checkBody.js

+ 1 - 1
src/store/actions/checkBody.js

@@ -246,7 +246,7 @@ export function backspaceText(state,action){
       res.saveText.splice(delIndex,1);
     }else{
       handleLocalDelTag(4,inx,data[inx],res.selecteds[inx]);
-      const n = action.text.length>0?1:2;
+      const n = action.text.length>0&&(config.punctuationReg.test(action.text))?1:2;
       data.splice(inx,n);
       res.selecteds.splice(inx,n);
       res.saveText.splice(inx,n);