| | |
| | | // 如果没有 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" } |
| | | } |
| | | clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "menu" } |
| | | return clonedItem; |
| | | }); |
| | | } |
| | |
| | | transformedArray[0].path = "/home"; |
| | | transformedArray[0].children = resp.data; |
| | | var obj = { |
| | | dashboardGrid: ["welcome", "ver", "time", "progress", "echarts", "about"], |
| | | dashboardGrid: ["Access", "deskNotice", "Entrance"], |
| | | menu: transformedArray, |
| | | permissions: ["list.add", "list.edit", "list.delete", "user.add", "user.edit", "user.delete"] |
| | | } |