// // 递归回显
getNodeId(list, newNodeId) {
for (let i in list) {
if (list[i].subMenuList == null && list[i].url == newNodeId) {
return list[i]
} else if (list[i].subMenuList !== null) {
let newNode = this.getNodeId(list[i].subMenuList, newNodeId);
if (newNode !== undefined) {
return newNode
}
}
}
},
el-tree树形菜单子集回显 获取子节点对象
最新推荐文章于 2023-07-04 10:55:02 发布