加载配置文件逻辑优化

This commit is contained in:
hsc
2026-07-30 13:23:59 +08:00
parent 2e71f68428
commit 7776e6c7ab
2 changed files with 5 additions and 46 deletions

View File

@@ -69,6 +69,10 @@ namespace MainModule.ViewModels
string json = System.IO.File.ReadAllText(filePath);
Newtonsoft.Json.JsonConvert.PopulateObject(json, _systemConfig);
}
else
{
_systemConfig = new SystemConfig();
}
}
//容器解析顺序不要改变!!!
_scopedContext = _scope.Resolve<ScopedContext>();