作用域配置

This commit is contained in:
czj
2026-06-05 14:29:22 +08:00
parent 347f292e9b
commit bb4fe61ded
5 changed files with 131 additions and 127 deletions

View File

@@ -86,8 +86,9 @@ namespace MainModule.ViewModels
private void OnRefresh()
{
// 双击:把自己的名字扔出去
_eventAggregator.GetEvent<ExpandViewEvent>().Publish(TestStatus);
_globalInfo.CurrentScope = TestStatus;
_eventAggregator.GetEvent<ExpandViewEvent>().Publish(TestStatus);
}
private void OnBackToProtocol()
@@ -106,6 +107,7 @@ namespace MainModule.ViewModels
TestStatus = navigationContext.Parameters.GetValue<string>("Name");
_globalInfo.ContextDic.Add(TestStatus, _scopedContext);
_globalInfo.StepRunningDic.Add(TestStatus, _stepRunning);
_globalInfo.ScopeDic.Add(TestStatus, _scope);
}
}