فهرست منبع

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

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);