Jelajahi Sumber

其他史查体提示bug修改

zhouna 6 tahun lalu
induk
melakukan
0de92f7a81
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 2 1
      src/containers/CheckBody.js
  2. 2 2
      src/containers/OtherHistory.js

+ 2 - 1
src/containers/CheckBody.js

@@ -4,10 +4,11 @@ import {getModule,getInitData} from '@store/async-actions/fetchModules.js';
 import {HIDE,RESET,SETDROPSHOW,ISREAD} from '@store/types/homePage.js';
 import {SELECTSEARCHDATA} from "@store/types/checkBody";
 import {billing} from '@store/async-actions/pushMessage';
+import {filterDataArr} from '@utils/tools.js';
 
 function mapStateToProps(state){ 
   const {homePage,mainSuit,checkBody} = state;
-  const hasMain = mainSuit.saveText.join('');//||mainSuit.data.length;
+  const hasMain = filterDataArr(mainSuit.saveText);//||mainSuit.data.length;
   return {
     data:checkBody.data,
     isEmpty:checkBody.isEmpty,

+ 2 - 2
src/containers/OtherHistory.js

@@ -6,11 +6,11 @@ import {HIDE,RESET,ISREAD} from '@store/types/homePage.js';
 import {getModule} from '@store/async-actions/fetchModules.js';
 import {billing} from '@store/async-actions/pushMessage';
 import {fullfillText} from '@common/js/func';
-import {didPushParamChange} from '@utils/tools.js';
+import {didPushParamChange,filterDataArr} from '@utils/tools.js';
 
 function mapStateToProps(state){
   const {otherHistory,homePage,typeConfig,mainSuit} = state;
-  const hasMain = mainSuit.saveText.join('');//||mainSuit.data.length;
+  const hasMain = filterDataArr(mainSuit.saveText);//||mainSuit.data.length;
   return {
     data: otherHistory.data,
     //initData:state.homePage.initData.otherHis,