Commit 35bb17fb authored by Mac's avatar Mac

1

parent e8fbb105
......@@ -172,7 +172,7 @@ export default {
let delItemitem=(arr: parmas)=>{
console.log(arr,'arr')
arr.map(x=>{
if(x.ChildList && x.ChildList){
if(x.ChildList && x.ChildList>0){
delItemitem(x.ChildList)
}else{
keys.value.push(x.newId)
......@@ -184,8 +184,10 @@ export default {
let j = arr[i]
if(j.newId == Id){
if(j.ChildList && j.ChildList.length>0){
console.log(j.ChildList)
console.log(j)
delItemitem(j.ChildList)
}else{
keys.value.push(Id)
}
}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