From e456f8684c5dee40d79d6dd79634305fb15d3d2f Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Tue, 10 Dec 2024 19:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/DTO/QCListViewModel.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/QC/DTO/QCListViewModel.cs b/IRaCIS.Core.Application/Service/QC/DTO/QCListViewModel.cs index 61e5802ec..cbc90c609 100644 --- a/IRaCIS.Core.Application/Service/QC/DTO/QCListViewModel.cs +++ b/IRaCIS.Core.Application/Service/QC/DTO/QCListViewModel.cs @@ -299,7 +299,18 @@ namespace IRaCIS.Core.Application.Contracts public string LatestReplyUserName { get; set; } = String.Empty; public string Content { get; set; } = string.Empty; - public string ContentReplaced => Content.Replace("
", "").Replace("
", "").Replace("
", "").Replace("
", ""); + public string ContentReplaced { + + get { + + var msg= Content.Replace("
", "").Replace("
", ""); + + string[] substrings = msg.Split(new string[] { "
", "
" }, StringSplitOptions.None); + + return string.Join("\n\n", substrings); + } + + } [DictionaryTranslateAttribute("ChallengeIsClosed")] public bool IsClosed { get; set; }