Explorar el Código

没权限访问提示添加

zhouna hace 6 años
padre
commit
803380b553
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/store/async-actions/patInfo.js

+ 5 - 0
src/store/async-actions/patInfo.js

@@ -1,6 +1,7 @@
 import {get, post, json} from "../../utils/ajax";
 import {GET_PATIENT_MESSAGE} from "../types/patInfo";
 import {CONFIRM_TYPE} from "../types/typeConfig";
+import {Notify} from '@commonComp';
 import {getInfos} from '@store/actions/getInfoByUuid';
 import {getUrlArgObject,pushAllDataList} from '@utils/tools';
 import {getInitModules} from '@store/async-actions/homePage.js';
@@ -24,6 +25,10 @@ export const initPersonInfo = (dispatch, getState) => {
             //console.log(data.data)
             getPatientMessage(dispatch, getState);
         } else {
+            Notify.error(data.msg);
+            dispatch({
+              type:MODI_LOADING
+            });
             console.log(res)
         }
     })