zhouna пре 5 година
родитељ
комит
faccf357f3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/store/async-actions/patInfo.js

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

@@ -133,7 +133,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({