😎修复L.Text可能报错问题

This commit is contained in:
zuohuaijun 2025-06-12 11:20:26 +08:00
parent a760abde44
commit dc44a41801

View File

@ -136,7 +136,14 @@ public partial class SysMenu : EntityBase
{ {
get get
{ {
return string.IsNullOrWhiteSpace(Title) ? Title : L.Text[Title]; try
{
return string.IsNullOrWhiteSpace(Title) ? Title : L.Text[Title];
}
catch
{
return Title;
}
} }
} }