Skip to content

Commit

Permalink
给房间配置增加WriteIndented操作
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jul 22, 2024
1 parent 048c4b6 commit 01cf6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public static void SaveRoomConfigurationFile()
roomListDiscard.data.Add(item.Value);
}
// 支持基本拉丁语和中文字符
string jsonString = JsonSerializer.Serialize(roomListDiscard, new JsonSerializerOptions() { Encoder = JavaScriptEncoder.Create(UnicodeRanges.All) });
string jsonString = JsonSerializer.Serialize(roomListDiscard, new JsonSerializerOptions() { Encoder = JavaScriptEncoder.Create(UnicodeRanges.All), WriteIndented = true });

string filePath = $"{Core_RunConfig._RoomConfigFile}";
if (File.Exists(filePath))
Expand Down

0 comments on commit 01cf6aa

Please sign in to comment.