diff --git a/projects/Application/Domain/IoTCenter/IoTData.cs b/projects/Application/Domain/IoTCenter/IoTData.cs index 52d9e386..f2f66283 100644 --- a/projects/Application/Domain/IoTCenter/IoTData.cs +++ b/projects/Application/Domain/IoTCenter/IoTData.cs @@ -2,7 +2,9 @@ using Infrastructure.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.Text.Encodings.Web; using System.Text.Json; +using System.Text.Unicode; namespace Application.Domain.Entities { @@ -57,7 +59,9 @@ namespace Application.Domain.Entities public void SetEnumValues(Dictionary values) { - this.EnumValues = JsonSerializer.Serialize(values); + this.EnumValues = JsonSerializer.Serialize(values,new JsonSerializerOptions { + Encoder= JavaScriptEncoder.Create(UnicodeRanges.All) + }); } public dynamic GetValue() diff --git a/projects/Platform/Views/Shared/_Layout.cshtml b/projects/Platform/Views/Shared/_Layout.cshtml index 7e32c361..b08dd3e5 100644 --- a/projects/Platform/Views/Shared/_Layout.cshtml +++ b/projects/Platform/Views/Shared/_Layout.cshtml @@ -30,8 +30,8 @@ - @* - *@ + + @**@ @HtmlTitle @RenderSection("styles", required: false) @@ -182,9 +182,9 @@ - @* - - *@ + + + @**@ @RenderSection("scripts", required: false) diff --git a/projects/Platform/wwwroot/temp/a-tree.html b/projects/Platform/wwwroot/temp/a-tree.html new file mode 100644 index 00000000..beca3905 --- /dev/null +++ b/projects/Platform/wwwroot/temp/a-tree.html @@ -0,0 +1,69 @@ + + + + + + + + 前端测试页 + + +
+ + sss + + +
+ + + + + + + + + + + diff --git a/projects/Platform/wwwroot/temp/el-tree.html b/projects/Platform/wwwroot/temp/el-tree.html new file mode 100644 index 00000000..9c63587a --- /dev/null +++ b/projects/Platform/wwwroot/temp/el-tree.html @@ -0,0 +1,72 @@ + + + + + + + + 前端测试页 + + +
+ + + +
+ + + + + + + + + + +