Browse Source

fix(exam businessflowlogic): resolve issue where preparation doesn't trigger after entering exam

sw 17 hours ago
parent
commit
798503cf33
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/states/businessFlowMiddlewareLogic.ts

+ 2 - 1
src/states/businessFlowMiddlewareLogic.ts

@@ -21,8 +21,9 @@ const businessFlowMiddlewareLogic: Middleware =
       `[businessFlowMiddleware] Current business flow is now: ${state.currentKey} ; Last key was: ${state.lastKey}`
       `[businessFlowMiddleware] Current business flow is now: ${state.currentKey} ; Last key was: ${state.lastKey}`
     );
     );
     //进入检查
     //进入检查
-    if (currentKey === 'exam') {
+    if (action.payload === 'exam') {
       prepare();
       prepare();
+      return next(action);
     }
     }
     if (isFromExamToView(action.payload, currentKey)) {
     if (isFromExamToView(action.payload, currentKey)) {
       //从检查进入图像处理,有可能是曝光导致的,怎么知道呢?看发生器状态
       //从检查进入图像处理,有可能是曝光导致的,怎么知道呢?看发生器状态