VUE中使用递归为什么我的只调用一次?

API.getFileClass()
        .then((res) => {
          if (res) {
            console.log("所属分类", res);
            // let baby = res.data;
            this.options5 = res.data;
            fori(this.options5);
            function fori(baby) {
              console.log(baby, "222222222");
              let size = "";
              let b = {};
              for (var i = 0; i < baby.length; i++) {
                const arr = baby[i];
                let a = arr.children;
                console.log(arr, "wwwwwwwwwww");
                if (a.length > 0) {
                  size = a.length;
                  b = arr;
                } else {
                  delete arr.children;
                }
              }
              if (size > 0) {
                console.log(size, "33333333333");
                fori(b);
              }
            }
          }
        })
        .catch((e) => {
          console.log(e);
        });

 

看完后觉得好乱,能不能添加几个debugger断点运行下,然后呢最好加下res.body究竟是怎么样子的东西