fix(rbac): 修复字典数据种子和菜单种子中的错误
This commit is contained in:
@@ -241,6 +241,32 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
|
|||||||
ListClass = "primary"
|
ListClass = "primary"
|
||||||
};
|
};
|
||||||
entities.Add(dictInfo15);
|
entities.Add(dictInfo15);
|
||||||
|
DictionaryEntity dictInfo14_2 = new DictionaryEntity()
|
||||||
|
{
|
||||||
|
|
||||||
|
DictLabel = "通知",
|
||||||
|
DictValue = "MerryGoRound",
|
||||||
|
DictType = "sys_notice_type_vben5",
|
||||||
|
OrderNum = 100,
|
||||||
|
Remark = "通知",
|
||||||
|
IsDeleted = false,
|
||||||
|
State = true,
|
||||||
|
ListClass = "info"
|
||||||
|
};
|
||||||
|
entities.Add(dictInfo14);
|
||||||
|
DictionaryEntity dictInfo15_2 = new DictionaryEntity()
|
||||||
|
{
|
||||||
|
|
||||||
|
DictLabel = "公告",
|
||||||
|
DictValue = "Popup",
|
||||||
|
DictType = "sys_notice_type_vben5",
|
||||||
|
OrderNum = 99,
|
||||||
|
Remark = "公告",
|
||||||
|
IsDeleted = false,
|
||||||
|
State = true,
|
||||||
|
ListClass = "primary"
|
||||||
|
};
|
||||||
|
entities.Add(dictInfo15);
|
||||||
|
|
||||||
DictionaryEntity dictInfo16 = new DictionaryEntity()
|
DictionaryEntity dictInfo16 = new DictionaryEntity()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
|
|||||||
|
|
||||||
public async Task SeedAsync(DataSeedContext context)
|
public async Task SeedAsync(DataSeedContext context)
|
||||||
{
|
{
|
||||||
if (!await _repository.IsAnyAsync(x => x.MenuName == "系统管理"&&x.MenuSource==MenuSourceEnum.Ruoyi))
|
if (!await _repository.IsAnyAsync(x => x.MenuName == "系统管理"&&x.MenuSource==MenuSourceEnum.Vben5))
|
||||||
{
|
{
|
||||||
await _repository.InsertManyAsync(GetSeedData());
|
await _repository.InsertManyAsync(GetSeedData());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user