|
@@ -503,11 +503,15 @@ if (hasRole) {
|
|
|
const thisItem = sidebarRouters.value.find(item=>item.redirect == "noRedirect") //拿到系统管理的第一个菜单 判断依据:第一个redirect == "noRedirect"的路由
|
|
|
const path1 = thisItem.path //一级路由
|
|
|
const path2 = thisItem.children[0].path //二级路由
|
|
|
+ let path3
|
|
|
+ if(thisItem.children[0].children){
|
|
|
+ path3 = thisItem.children[0].children[0].path
|
|
|
+ }
|
|
|
menuList.data.push(
|
|
|
{
|
|
|
label: "系统管理",
|
|
|
// path: "/biz/dirTemplate",
|
|
|
- path: `${path1}/${path2}`,
|
|
|
+ path: `${path1}/${path2}${path3?'/'+path3:''}`,
|
|
|
imgs: system,
|
|
|
beimgs: issystem,
|
|
|
}
|