| | |
| | | } |
| | | // console.log(res1.data[0].children.length, 9999) |
| | | // console.log(res1.data[0].children, 8888) |
| | | if (res1.data[0].children.length > 0 && res1.data[0].children.length === count++) { |
| | | // if (res1.data[0].children.length > 0 && res1.data[0].children.length === count++) { |
| | | if (res1.data[0].children.length === count++) { |
| | | count = 0 |
| | | LineSearchTopLeftData([item]).then(res => { |
| | | res1 = res |
| | |
| | | children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | } |
| | | } |
| | | if (res2.data[0].children.length > 0 && res2.data[0].children.length === count++) { |
| | | if (res2.data[0].children.length === count++) { |
| | | count = 0 |
| | | LineSearchTopLeftData([item]).then(res => { |
| | | res2 = res |
| | |
| | | children: res3.data[0].children ? res3.data[0].children[count] : [] |
| | | } |
| | | } |
| | | if (res3.data[0].children.length > 0 && res3.data[0].children.length === count++) { |
| | | if (res3.data[0].children.length === count++) { |
| | | count = 0 |
| | | LineSearchTopLeftData([item]).then(res => { |
| | | res3 = res |
| | |
| | | children: res4.data[0].children ? res4.data[0].children[count] : [] |
| | | } |
| | | } |
| | | if (res4.data[0].children > 0 && res4.data[0].children.length === count++) { |
| | | // if (res4.data[0].children > 0 && res4.data[0].children.length === count++) { |
| | | if (res4.data[0].children.length === count++) { |
| | | count = 0 |
| | | LineSearchTopLeftData([item]).then(res => { |
| | | res4 = res |