diff --git a/projects/IoT.Shared/Application/Models/EditNodeModel.cs b/projects/IoT.Shared/Application/Models/EditNodeModel.cs
index 7a9cfe8a..c27f8c04 100644
--- a/projects/IoT.Shared/Application/Models/EditNodeModel.cs
+++ b/projects/IoT.Shared/Application/Models/EditNodeModel.cs
@@ -46,6 +46,7 @@ namespace Application.Models
[ReadOnly(true)]
public bool IsOnline { get; set; }
+ [Required(ErrorMessage = nameof(RequiredAttribute))]
[Display(Name = "图片")]
[DataType(DataType.ImageUrl)]
public string Image { get; set; }
diff --git a/projects/IoT.Shared/Application/Models/EditProductModel.cs b/projects/IoT.Shared/Application/Models/EditProductModel.cs
index 9ff6230f..f764001c 100644
--- a/projects/IoT.Shared/Application/Models/EditProductModel.cs
+++ b/projects/IoT.Shared/Application/Models/EditProductModel.cs
@@ -7,6 +7,7 @@ namespace Application.Models
[Display(Name = "产品")]
public class EditProductModel : EditModel
{
+ [Required(ErrorMessage = nameof(RequiredAttribute))]
[Display(Name = "产品分类")]
[DataType("SelectList")]
public Guid? CategoryId { get; set; }
diff --git a/projects/WebMVC/wwwroot/router/shared/edit.html b/projects/WebMVC/wwwroot/router/shared/edit.html
index c7fe5741..918db0b4 100644
--- a/projects/WebMVC/wwwroot/router/shared/edit.html
+++ b/projects/WebMVC/wwwroot/router/shared/edit.html
@@ -22,11 +22,11 @@