田爽 před 1 rokem
rodič
revize
580e6ccf07

+ 3 - 3
src/Hotline.Share/Dtos/Settings/BusinessTagDto.cs

@@ -109,14 +109,14 @@ namespace Hotline.Share.Dtos.Settings
 		/// </summary>
 		public ETagType Type { get; set; }
 
-		public string TypeText => Type.GetDescription();
+		public string TypeText => (int)Type > 0 ? Type.GetDescription() : "";
 
 		/// <summary>
 		/// 业务标签类型
 		/// </summary>
 		public EBusinessTagType BusinessType { get; set; }
-
-		public string BusinessTypeText => BusinessType.GetDescription();
+	
+		public string BusinessTypeText => (int)BusinessType > 0 ? BusinessType.GetDescription():"";
 
 		public DateTime? LastModificationTime { get; set; }