fix: 判断目录pcode问题移除

This commit is contained in:
2026-06-23 15:43:29 +08:00
parent ca55204b4a
commit 950e929671

View File

@@ -83,11 +83,6 @@ public class SaveMenuRequest : IValidatableObject
yield return new ValidationResult("当类型为菜单或者按钮时,权限标识不能为空", new[] { nameof(Permission) });
}
if (MenuType == MenuEnumType.Folder && !string.IsNullOrEmpty(PCode))
{
yield return new ValidationResult($"{Title} , 目录类型无需传入上级code", new[] { nameof(PCode) });
}
//自动生成code
if (string.IsNullOrEmpty(Code))
{