Browse Source

添加日志

sw 1 week ago
parent
commit
ab178a3044

+ 4 - 1
src/pages/patient/components/WorklistTable.tsx

@@ -356,7 +356,10 @@ const WorklistTable: React.FC = () => {
   };
   };
 
 
   const handleRowDoubleClick = (record: Task) => {
   const handleRowDoubleClick = (record: Task) => {
-    console.log('Row double-clicked:', JSON.stringify(record, null, 2));
+    console.log(
+      '[WorklistTable] Row double-clicked:',
+      JSON.stringify(record, null, 2)
+    );
     worklistToExam(record);
     worklistToExam(record);
   };
   };
 
 

+ 1 - 0
src/states/exam/examWorksCacheSlice.ts

@@ -27,6 +27,7 @@ const examWorksCacheSlice = createSlice({
       );
       );
     },
     },
     clearWorks: (state) => {
     clearWorks: (state) => {
+      console.log('[examWorksCacheSlice] Clearing works cache');
       state.works = [];
       state.works = [];
     },
     },
     setLoading: (state, action: PayloadAction<boolean>) => {
     setLoading: (state, action: PayloadAction<boolean>) => {