Explorar o código

Merge branch '121bugFix' into CommonTemplate

luolei %!s(int64=5) %!d(string=hai) anos
pai
achega
dbef88c42e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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({