Bläddra i källkod

杂音类单选bug613

zhouna 6 år sedan
förälder
incheckning
f91a849037
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/components/SpreadDrop/index.jsx

+ 2 - 2
src/components/SpreadDrop/index.jsx

@@ -224,7 +224,7 @@ class SpreadDrop extends Component{
       return;
     }
     //操作单选项
-    if(!noneOn&&selected){
+    if(selected){
       const tIndex= exists.findIndex((it)=>it.questionId===item.questionId);
       const bIndex= withs.findIndex((it)=>it.questionId===item.questionId);
       if(tIndex!=-1){
@@ -437,7 +437,7 @@ class ListItem extends Component{
     handleClick&&handleClick(item,isExclu,joint,index);
   }
   getClass(id){     //无之后显示黑色,之前显示蓝色
-    const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;
+    const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;console.log(this.props)
     if(exclusion!=''){
       if(+id===+exclusion){
         return style['selected'];