|
@@ -31,6 +31,14 @@ const businessFlowMiddlewareLogic: Middleware =
|
|
|
if (action.type !== setBusinessFlow.type) {
|
|
|
return next(action); // Only handle setBusinessFlow actions
|
|
|
}
|
|
|
+
|
|
|
+ // 响应功能不可用后的继续操作
|
|
|
+ if (action.payload === 'continueAfterFeatureNotAvailable') {
|
|
|
+ console.log(
|
|
|
+ `[businessFlowMiddleware] Continuing to: ${continueBusinessFlow}`
|
|
|
+ );
|
|
|
+ return next({ ...action, payload: continueBusinessFlow });
|
|
|
+ }
|
|
|
const state = store.getState().BusinessFlow as BusinessFlowState;
|
|
|
const currentKey = state.currentKey;
|
|
|
const targetKey = action.payload;
|
|
@@ -247,11 +255,13 @@ const businessFlowMiddlewareLogic: Middleware =
|
|
|
if (
|
|
|
action.payload === 'archivelist' ||
|
|
|
action.payload === 'bin' ||
|
|
|
- action.payload === 'outputlist'
|
|
|
+ action.payload === 'outputlist' ||
|
|
|
+ action.payload === 'print'
|
|
|
) {
|
|
|
console.log(
|
|
|
`[businessFlowMiddleware] Feature not available: ${action.payload}`
|
|
|
);
|
|
|
+ continueBusinessFlow = action.payload; // 保存要继续的业务流程
|
|
|
store.dispatch(setFeatureNotAvailableOpen(true));
|
|
|
return;
|
|
|
}
|