浏览代码

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

zhouna 6 年之前
父节点
当前提交
68f8f4ff8d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,
         })