Parcourir la source

Merge branch '121bugFix' into CommonTemplate

luolei il y a 5 ans
Parent
commit
dbef88c42e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/store/async-actions/patInfo.js

+ 1 - 1
src/store/async-actions/patInfo.js

@@ -152,7 +152,7 @@ function getDoctorConfig(id,dispatch){
   json(api.getDoctorConfig,{doctorId:id}).then((res)=>{
     if(res.data.code==='0'){
       const configs = parseDoctorCon(res.data.data);
-      if(!configs){
+      if(!configs||Object.keys(configs).length===0){
         return ;
       }
       dispatch({