소스 검색

有糖尿病bug修改

zhouna 6 년 전
부모
커밋
7a014d0d79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,