Forráskód Böngészése

杂音单选列连接不显示bug修改

zhouna 6 éve
szülő
commit
68f8f4ff8d
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/components/SpreadDrop/index.jsx

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

@@ -228,7 +228,7 @@ class SpreadDrop extends Component{
       const tIndex= exists.findIndex((it)=>it.questionId===item.questionId);
       const bIndex= withs.findIndex((it)=>it.questionId===item.questionId);
       if(tIndex!=-1){
-        exists.splice(tIndex,1,item);
+        exists.splice(tIndex,1,Object.assign({},item,{name}));    //修改单选列连接字符不显示bug
         this.setState({
           exists,
         })