|
@@ -318,12 +318,19 @@ export function setImportCheckbodyLabel(state,action) {
|
|
export function recoveTag(state,action) {
|
|
export function recoveTag(state,action) {
|
|
let res = Object.assign({},state);
|
|
let res = Object.assign({},state);
|
|
let arr = [...res.data];
|
|
let arr = [...res.data];
|
|
- arr.splice(action.index,0,action.data);
|
|
|
|
|
|
+ const isArr= !action.data.tagType;
|
|
|
|
+ if(!isArr){
|
|
|
|
+ arr.splice(action.index,0,action.data);
|
|
|
|
+ }else{
|
|
|
|
+ arr.splice(action.index,0,...action.data);
|
|
|
|
+ }
|
|
const dataArr = checkFullfillText(arr);
|
|
const dataArr = checkFullfillText(arr);
|
|
- let nextLabel = dataArr.newArr[(+action.index)+1];
|
|
|
|
- //展开收起状态
|
|
|
|
- if(nextLabel.tagType==8){
|
|
|
|
- nextLabel.showInCheck=action.data.showInCheck;
|
|
|
|
|
|
+ if(!isArr){
|
|
|
|
+ let nextLabel = dataArr.newArr[(+action.index)+1];
|
|
|
|
+ //展开收起状态
|
|
|
|
+ if(nextLabel.tagType==8){
|
|
|
|
+ nextLabel.showInCheck=action.data.showInCheck;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
res.data = dataArr.newArr;
|
|
res.data = dataArr.newArr;
|
|
res.saveText = dataArr.saveText;
|
|
res.saveText = dataArr.saveText;
|