浏览代码

Merge branch 'master' of origin

sw 1 周之前
父节点
当前提交
0e77934c34
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/domain/patient/registerLogic.ts
  2. 1 1
      src/hooks/useRegisterState.ts

+ 1 - 1
src/domain/patient/registerLogic.ts

@@ -31,7 +31,7 @@ export async function executeRegisterLogic(store: {
     // 从Redux获取数据
     let values = state.form.formData;
     const selectedViews = state.viewSelection.selectedViews;
-    const currentPatientType = state.viewSelection.currentPatientType;
+    const currentPatientType = state.patientType.current;
     const productName = state.product.productName;
 
     console.log(`从Redux获取的表单数据:${JSON.stringify(values, null, 2)}`);

+ 1 - 1
src/hooks/useRegisterState.ts

@@ -6,7 +6,7 @@ const useRegisterState = () => {
     (state: RootState) => state.viewSelection.selectedViews
   );
   const currentPatientType = useSelector(
-    (state: RootState) => state.viewSelection.currentPatientType
+    (state: RootState) => state.patientType.current
   );
 
   return { selectedViews, currentPatientType };