初步可用后台

This commit is contained in:
j4587698
2020-02-16 22:11:24 +08:00
parent 104cfb2463
commit c448afdd1d
37 changed files with 2278 additions and 310 deletions

View File

@@ -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);
}
}
}