fix: 判断目录pcode问题移除
This commit is contained in:
@@ -83,11 +83,6 @@ public class SaveMenuRequest : IValidatableObject
|
|||||||
yield return new ValidationResult("当类型为菜单或者按钮时,权限标识不能为空", new[] { nameof(Permission) });
|
yield return new ValidationResult("当类型为菜单或者按钮时,权限标识不能为空", new[] { nameof(Permission) });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MenuType == MenuEnumType.Folder && !string.IsNullOrEmpty(PCode))
|
|
||||||
{
|
|
||||||
yield return new ValidationResult($"{Title} , 目录类型无需传入上级code", new[] { nameof(PCode) });
|
|
||||||
}
|
|
||||||
|
|
||||||
//自动生成code
|
//自动生成code
|
||||||
if (string.IsNullOrEmpty(Code))
|
if (string.IsNullOrEmpty(Code))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user