mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-04 07:16:35 +08:00
解决了接口节点的参数共享,UI控件的Menu菜单事件穿透问题,同时优化了工作台画布流程相关事件的部分代码
This commit is contained in:
@@ -61,6 +61,7 @@ namespace Serein.Workbench
|
||||
{
|
||||
getSyncContext = () => uiContext;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
UIContextOperation? uIContextOperation = null;
|
||||
@@ -84,6 +85,12 @@ namespace Serein.Workbench
|
||||
public partial class App : Application
|
||||
{
|
||||
private static IServiceProvider? ServiceProvider;
|
||||
|
||||
/// <summary>
|
||||
/// UI线程
|
||||
/// </summary>
|
||||
public static UIContextOperation UIContextOperation => App.GetService<UIContextOperation>() ?? throw new NullReferenceException();
|
||||
|
||||
public static T GetService<T>() where T : class
|
||||
{
|
||||
return ServiceProvider?.GetService<T>() ?? throw new NullReferenceException();
|
||||
@@ -111,7 +118,7 @@ namespace Serein.Workbench
|
||||
{
|
||||
await Task.Delay(500);
|
||||
#if DEBUG
|
||||
if (1 ==1)
|
||||
if (1 == 1)
|
||||
{
|
||||
// 这里是测试代码,可以删除
|
||||
string filePath;
|
||||
|
||||
Reference in New Issue
Block a user