三级菜单样式调整
This commit is contained in:
@@ -135,11 +135,15 @@ const parseDynamicRoutes = (rawRoutes: RouteVO[]): RouteRecordRaw[] => {
|
||||
} as RouteRecordRaw;
|
||||
// 处理组件路径
|
||||
|
||||
normalizedRoute.component =
|
||||
!normalizedRoute.component
|
||||
? Layout
|
||||
: modules[`../../views/${normalizedRoute.component}.vue`] ||
|
||||
|
||||
if (route.pid === null) {
|
||||
normalizedRoute.component = Layout
|
||||
} else {
|
||||
normalizedRoute.component = modules[`../../views/${normalizedRoute.component}.vue`] ||
|
||||
modules["../../views/error-page/404.vue"];
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 递归解析子路由
|
||||
if (normalizedRoute.children) {
|
||||
|
||||
Reference in New Issue
Block a user