Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug:Vben 5.3.0 配置静态路由左侧sidebar导航栏不显示菜单 #4665

Closed
5 tasks done
XiaoLiz opened this issue Oct 17, 2024 · 0 comments · Fixed by #4746
Closed
5 tasks done

Bug:Vben 5.3.0 配置静态路由左侧sidebar导航栏不显示菜单 #4665

XiaoLiz opened this issue Oct 17, 2024 · 0 comments · Fixed by #4746

Comments

@XiaoLiz
Copy link

XiaoLiz commented Oct 17, 2024

Version

Vben Admin V5

Describe the bug?

Vben 5.3.0 按照文档配置静态路由左侧菜单栏不显示菜单

参考文档配置如下

// 有需要可以自行打开注释,并创建文件夹 静态路由
const externalRouteFiles = import.meta.glob('./external/**/*.ts', { 
    eager: true 
});

/** 动态路由 */
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);

/** 外部路由列表,访问这些页面可以不需要Layout,可能用于内嵌在别的系统 */
const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
// const externalRoutes: RouteRecordRaw[] = [];

/** 路由列表,由基本路由+静态路由组成 */
const routes: RouteRecordRaw[] = [
  ...coreRoutes,
  ...externalRoutes,
  fallbackNotFoundRoute,
];

左侧菜单栏缺少一个项目管理menu
image

直接访问路由页面可以显示
image

Reproduction

暂无

System Info

MacOS  14.3.1 
Visual Studio Code 1.94.2
Chrome 129.0.6668.101(正式版本)

Relevant log output

No response

Validations

@XiaoLiz XiaoLiz changed the title Bug: 配置静态路由不显示菜单 Bug:Vben 5.3.0 配置静态路由左侧导航蓝不显示静态路由菜单 Oct 17, 2024
@XiaoLiz XiaoLiz changed the title Bug:Vben 5.3.0 配置静态路由左侧导航蓝不显示静态路由菜单 Bug:Vben 5.3.0 配置静态路由左侧导航蓝不显示菜单 Oct 17, 2024
@XiaoLiz XiaoLiz changed the title Bug:Vben 5.3.0 配置静态路由左侧导航蓝不显示菜单 Bug:Vben 5.3.0 配置静态路由左侧导航栏不显示菜单 Oct 17, 2024
@XiaoLiz XiaoLiz changed the title Bug:Vben 5.3.0 配置静态路由左侧导航栏不显示菜单 Bug:Vben 5.3.0 配置静态路由左侧sidebar导航栏不显示菜单 Oct 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant