Ver código fonte

有糖尿病bug修改

zhouna 6 anos atrás
pai
commit
7a014d0d79
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/containers/SpreadDrop.js

+ 1 - 1
src/containers/SpreadDrop.js

@@ -130,7 +130,7 @@ function otherHisConfirm(dispatch,store,params){
   }
   let existsId = getIds(exists);
   let withsId = getIds(withs);
-  const ids = existsId.join(",")+','+withsId.join(",");
+  const ids = existsId.length>0?existsId.join(",")+','+withsId.join(","):withsId.join(",");
   if(!ids&&nones){      //只有无的项目
     dispatch({
       type: CONFIRMSELECTED,