refactor(#I12X7W): 支持 linux 下运行时检测结果显示

#Comment
comment #I12X7W

#Issue
link #I12X7W
This commit is contained in:
Argo Zhang 2019-10-01 15:07:09 +08:00
parent c2a0a3cad5
commit c2a127707b
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@
{
title: "值", field: "value", formatter: function (value, row) {
if (row.name === "Exception") value = $.format("<span class='text-danger'>{0}</span>", value);
if (row.name === "dotnet --info") value = value.replace(/\r\n/g, "<br>");
if (row.name === "dotnet --info") {
value = value.replace(/\r\n/g, "<br>");
value = value.replace(/\n/g, "<br>");
}
return value;
}
}