console.log("routes:",routes)    //对象格式

把两个数组 合并成一个数组

 

        let pathlist=routes.children[2].children; //数组1

        let pathlist1=routes.children[3].children;//数组2

        let path=pathlist.concat(pathlist1)     //合并数组 

        console.log('path:',path)

把两个数组 合并成一个数组

合并成功

 

 

//跳转路由,可以忽略

let path=routes.children[3].children[this.selectionPath-1].path;

 this.$router.push(path);

相关文章:

  • 2022-03-14
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-01-28
  • 2022-03-14
  • 2022-12-23
  • 2021-11-25
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案