Commit 35bb17fb authored by Mac's avatar Mac

1

parent e8fbb105
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
let delItemitem=(arr: parmas)=>{ let delItemitem=(arr: parmas)=>{
console.log(arr,'arr') console.log(arr,'arr')
arr.map(x=>{ arr.map(x=>{
if(x.ChildList && x.ChildList){ if(x.ChildList && x.ChildList>0){
delItemitem(x.ChildList) delItemitem(x.ChildList)
}else{ }else{
keys.value.push(x.newId) keys.value.push(x.newId)
...@@ -184,8 +184,10 @@ export default { ...@@ -184,8 +184,10 @@ export default {
let j = arr[i] let j = arr[i]
if(j.newId == Id){ if(j.newId == Id){
if(j.ChildList && j.ChildList.length>0){ if(j.ChildList && j.ChildList.length>0){
console.log(j.ChildList) console.log(j)
delItemitem(j.ChildList) delItemitem(j.ChildList)
}else{
keys.value.push(Id)
} }
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment