|
|
@ -31,7 +31,7 @@ const permission = { |
|
|
|
|
|
|
|
const first = sidebarRoutes?.[0]?.children?.[0] |
|
|
|
if (first) { |
|
|
|
rewriteRoutes.push( { |
|
|
|
rewriteRoutes.unshift({ |
|
|
|
path: '', |
|
|
|
component: Layout, |
|
|
|
redirect: "index", |
|
|
@ -44,6 +44,7 @@ const permission = { |
|
|
|
}, |
|
|
|
] |
|
|
|
}) |
|
|
|
sidebarRoutes?.[0]?.children.shift(); |
|
|
|
} |
|
|
|
|
|
|
|
rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true }) |
|
|
|