Explorar el Código

有糖尿病bug修改

zhouna hace 6 años
padre
commit
7a014d0d79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,