Browse Source

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

zhouna 6 năm trước cách đây
mục cha
commit
68f8f4ff8d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,
         })