Merge pull request '避免前端警告 tagType 为 ""' (#67) from orzsoft_admin/Admin.NET.Pro:template into main
Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/67
This commit is contained in:
commit
2f1c8a00a9
@ -60,7 +60,7 @@ public class EnumToDictJob : IJob
|
||||
dictData.Code = enumData.Name;
|
||||
dictData.OrderNo = enumData.Value + 10;
|
||||
dictData.Name = enumData.Describe;
|
||||
dictData.TagType = enumData.Theme;
|
||||
dictData.TagType = enumData.Theme != "" ? enumData.Theme : "info";
|
||||
uSysDictData.Add(dictData);
|
||||
}
|
||||
});
|
||||
@ -114,7 +114,7 @@ public class EnumToDictJob : IJob
|
||||
Code = u.Name,
|
||||
Remark = t2.Remark,
|
||||
OrderNo = u.Value + 10,
|
||||
TagType = u.Theme ?? "info"
|
||||
TagType = u.Theme != "" ? u.Theme : "info"
|
||||
}).ToList()
|
||||
}).ToList();
|
||||
var iDictData = new List<SysDictData>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user