三级菜单样式调整

This commit is contained in:
2025-12-02 13:54:13 +08:00
parent 0606a5a5c5
commit 6d07a69020
14 changed files with 58 additions and 32 deletions

View File

@@ -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) {