Explorar o código

月经史展开多空自由文本标签bug修改823

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
f623c33790
Modificáronse 2 ficheiros con 1 adicións e 4 borrados
  1. 1 1
      src/containers/SpreadDrop.js
  2. 0 3
      src/store/actions/otherHistory.js

+ 1 - 1
src/containers/SpreadDrop.js

@@ -205,7 +205,7 @@ function otherHisConfirm(dispatch,store,params){
       });
       dispatch({
         type: CONFIRMSELECTED,
-        data: {exists:fullfillText(has,false,false).newArr,withs:fullfillText(wes,false,false).newArr,nones:nones,ikey,copyType}
+        data: {exists:fullfillText(has,false,true).newArr,withs:fullfillText(wes,false,true).newArr,nones:nones,ikey,copyType}
       });
       dispatch({
         type:ISREAD

+ 0 - 3
src/store/actions/otherHistory.js

@@ -37,7 +37,6 @@ export const confirm = (state,action) =>{
     return res;
   }
   //有,伴,无随配
-  //arr.splice(ikey-1,1);
   let flabel = items[items.length-1];         //要插入的最后一个标签
   let labelText = flabel.value!==undefined?flabel.value:flabel.name;
   let text = labelText;
@@ -47,8 +46,6 @@ export const confirm = (state,action) =>{
     text = flabel.value;
   }
   arr.splice(ikey,0,...exists,...withs);
-  //arr[ikey-1].value = text;
-  //res.saveText[ikey+items.length] = text;
   res.saveText = fullfillText(arr).saveText;
   res.update=Math.random();         //用于触发组件更新(data变化了因在对象中无法被组件检测到)
   return res;