初步可用后台
This commit is contained in:
@@ -110,12 +110,9 @@ namespace JXCMS.Core.Db
|
||||
jsonObject.Add("Db", JObject.FromObject(dbConfig));
|
||||
}
|
||||
|
||||
using (var writer = new StreamWriter(filePath))
|
||||
using (JsonTextWriter jsonwriter = new JsonTextWriter(writer))
|
||||
{
|
||||
jsonwriter.Formatting = Formatting.Indented;
|
||||
jsonObject.WriteTo(jsonwriter);
|
||||
}
|
||||
using var writer = new StreamWriter(filePath);
|
||||
using JsonTextWriter jsonWriter = new JsonTextWriter(writer) {Formatting = Formatting.Indented};
|
||||
jsonObject.WriteTo(jsonWriter);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user