Procházet zdrojové kódy

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

zhouna před 6 roky
rodič
revize
68f8f4ff8d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,
         })