Explorar el Código

诊断清除不掉的问题

Luolei hace 6 años
padre
commit
61b1e97fa1
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 1 0
      src/store/actions/diagnosticList.js
  2. 2 1
      src/store/reducers/diagnosticList.js

+ 1 - 0
src/store/actions/diagnosticList.js

@@ -73,6 +73,7 @@ export const clearAllDiag = (state, action) => {
     res.diagnosticList = action.data
     res.diagnosticStr = action.saveText
     res.mainSuitStr = action.mainSuitStr
+    res.diagnosticStrNoType = action.saveText
     return res;
 }
 

+ 2 - 1
src/store/reducers/diagnosticList.js

@@ -30,7 +30,8 @@ const initState = {
         //     type: 1
         // }
     ],
-    mainSuitStr:''
+    mainSuitStr:'',
+    diagnosticStrNoType:'',
 
 }