加载配置文件优化
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user