chore: ui json显示不缩进

This commit is contained in:
2248356998 qq.com
2025-10-16 17:39:57 +08:00
parent 21215d0379
commit 9c230c2da9

View File

@@ -32,11 +32,11 @@ public static class VariableModelUtils
switch (fieldName)
{
case nameof(VariableRuntime.Value):
return row.Value?.ToSystemTextJsonString() ?? string.Empty;
return row.Value?.ToSystemTextJsonString(false) ?? string.Empty;
case nameof(VariableRuntime.RawValue):
return row.RawValue?.ToSystemTextJsonString() ?? string.Empty;
return row.RawValue?.ToSystemTextJsonString(false) ?? string.Empty;
case nameof(VariableRuntime.LastSetValue):
return row.LastSetValue?.ToSystemTextJsonString() ?? string.Empty;
return row.LastSetValue?.ToSystemTextJsonString(false) ?? string.Empty;
case nameof(VariableRuntime.ChangeTime):
return row.ChangeTime.ToString("dd-HH:mm:ss.fff");