修复菜单管理里面,编辑后或者新增没有增加routerName,会导致主菜单导航时无法显示

This commit is contained in:
志福
2024-10-15 18:31:14 +08:00
parent 974f264272
commit 7b20b68b6a
4 changed files with 21 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Menu
public string? Remark { get; set; }
public string? Component { get; set; }
public string? Query { get; set; }
public string? RouterName { get; set; }
public int OrderNum { get; set; }
//public List<MenuEntity>? Children { get; set; }
}

View File

@@ -24,6 +24,8 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Menu
public int OrderNum { get; set; }
public string? RouterName { get; set; }
//public List<MenuEntity>? Children { get; set; }
}
}

View File

@@ -91,13 +91,28 @@ defineExpose({ getRef });
<re-col
v-show="newFormInline.menuType !== 2"
:value="24"
:xs="24"
:sm="24"
:xs="12"
:sm="12"
>
<el-form-item label="菜单图标">
<IconSelect v-model="newFormInline.menuIcon" class="w-full" />
</el-form-item>
</re-col>
<re-col
v-show="newFormInline.menuType !== 2"
:value="24"
:xs="12"
:sm="12"
>
<el-form-item label="路由名称">
<el-input
v-model="newFormInline.routerName"
clearable
placeholder="请输入菜单名称"
class="w-full"
/>
</el-form-item>
</re-col>
<re-col :value="12" :xs="24" :sm="24">
<el-form-item label="菜单名称" prop="menuName">
<el-input

View File

@@ -89,7 +89,7 @@ export function useMenu() {
{
label: "显示",
prop: "isShow",
formatter: ({ isShow }) => (isShow ? "" : ""),
formatter: ({ isShow }) => (isShow ? "" : ""),
width: 100
},
{