feat(menu): 添加 Vben5 路由构建功能并优化菜单转换逻辑

- 为 MenuAggregateRoot 添加 Vben5RouterBuild 扩展方法,支持 Vben5 框架的路由构建
- 在 Vben5RouterBuild 中实现完整的 URL 类型检测和内嵌 iframe 处理逻辑
- 添加对内嵌链接、外部链接和普通路由的不同处理策略
- 优化路由名称生成规则,支持开头大写处理
- 在种子数据中添加示例并注释说明
This commit is contained in:
dubai
2026-01-11 20:49:47 +08:00
parent dc0c83a620
commit adf09f4753
3 changed files with 196 additions and 8 deletions

View File

@@ -184,7 +184,7 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
{
MenuName = "定时任务",
MenuType = MenuTypeEnum.Menu,
Router = "http://127.0.0.1:19002/hangfire",
Router = "http://127.0.0.1:19001/hangfire",
IsShow = true,
IsLink = true,
MenuIcon = "tabler:calendar-clock",
@@ -212,9 +212,9 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
{
MenuName = "接口文档",
MenuType = MenuTypeEnum.Menu,
Router = "http://127.0.0.1:19002/swagger",
Router = "http://127.0.0.1:19001/swagger",
IsShow = true,
IsLink = true,
IsLink = false, // Vben5RouterBuild方法会基于Router属性判断是否为链接如果是再根据IsLink字段判断是内嵌还是跳转
MenuIcon = "devicon:swagger",
OrderNum = 100,
IsDeleted = false,