| | |
| | | // 如果没有 children 属性,说明是最后一级,添加 component 对象 |
| | | var len = clonedItem.path.length; |
| | | if (item.name == "任务调度") { |
| | | //clonedItem.component = clonedItem.path; //有component不可以使用iframe |
| | | clonedItem.origin = item.path; |
| | | clonedItem.component = "myiframe/urlPath"; //有component不可以使用iframe |
| | | clonedItem.path = "/myiframe/urlPath"; |
| | | } else { |
| | | clonedItem.component = clonedItem.path.substring(1, len); |
| | | } |
| | | } |
| | | if (item.name == "任务调度") { |
| | | clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "iframe" } |
| | | } else { |
| | | clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "menu" } |
| | | } |
| | | return clonedItem; |
| | | }); |
| | | } |