瀏覽代碼

优化拍照结果少数据

KWD 2 月之前
父節點
當前提交
7405dd2321
共有 1 個文件被更改,包括 13 次插入7 次删除
  1. 13 7
      TeamAAS-VM/Core/Management.cs

+ 13 - 7
TeamAAS-VM/Core/Management.cs

@@ -3669,6 +3669,12 @@ namespace TeamAAS_VP.Core
                                         }
                                     }
                                     lockResultsAll.Add(lockResult1.Copy());
+                                    _ = App.Current.Dispatcher.BeginInvoke(new Action(() =>
+                                    {
+                                        _eventAggregator
+                                            .GetEvent<LockFinishNotification>()
+                                            .Publish(lockResult1);
+                                    }));
                                 }
                             }
                             else
@@ -3711,7 +3717,12 @@ namespace TeamAAS_VP.Core
                                     }
                                 }
                                 lockResultsAll.Add(lockResult1.Copy());
-
+                                _ = App.Current.Dispatcher.BeginInvoke(new Action(() =>
+                                {
+                                    _eventAggregator
+                                        .GetEvent<LockFinishNotification>()
+                                        .Publish(lockResult1);
+                                }));
                             }
 
                             if (stationConfig.SaveCsvkeyData)
@@ -3766,12 +3777,7 @@ namespace TeamAAS_VP.Core
                                     }
                                 }
                             }
-                            _ = App.Current.Dispatcher.BeginInvoke(new Action(() =>
-                            {
-                                _eventAggregator
-                                    .GetEvent<LockFinishNotification>()
-                                    .Publish(lockResult1);
-                            }));
+    
 
                         }
                         catch (Exception ex)