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

最新合并代码后 的仓库 ROLE 模式下 路由菜单取name做了名字 不取title了 #3655

Closed
4 tasks done
672064406zerui opened this issue Mar 6, 2024 · 0 comments · Fixed by #3660
Closed
4 tasks done

Comments

@672064406zerui
Copy link

672064406zerui commented Mar 6, 2024

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

ROLE 模式下 menus/index.ts
`(() => {
const menuModules: MenuModule[] = [];

menuModules.sort((a, b) => {
return (a.orderNo || 0) - (b.orderNo || 0);
});

for (const menu of menuModules) {
staticMenus.push(transformMenuModule(menu));
}
})();`

for of 导致menu的类型变为了menuModule类型 但是值是menu类型的 所以transformMenuModule方法解构不到值 导致菜单白屏

复现 Bug

请描述在演示页面中复现 Bug 的详细步骤,以确保我们可以理解并定位问题。部分 Bug 如果未在 Demo 中涉及,请务必提供关键代码

系统信息

  • 操作系统:win10
  • Node 版本:18.3
  • 包管理器 (npm/yarn/pnpm) 及其版本:8.15.4
cszhjh added a commit to cszhjh/vue-vben-admin that referenced this issue Mar 7, 2024
@672064406zerui 672064406zerui changed the title ROLE 模式下 transformMenuModule入参方法异常问题 最新合并代码后 的仓库 ROLE 模式下 路由菜单取name做了名字 不取title了 Mar 8, 2024
xxs3315 pushed a commit to xxs3315/vue-vben-admin that referenced this issue Mar 9, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant