Parcourir la source

Merge branch 'testAccess'

# Conflicts:
#	src/utils/config.js
zhouna il y a 6 ans
Parent
commit
c47c3c795f
2 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 5 0
      src/store/async-actions/patInfo.js
  2. 1 1
      src/utils/config.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)
         }
     })

+ 1 - 1
src/utils/config.js

@@ -8,6 +8,6 @@ const host='http://192.168.2.241:5050';//后端接口访问地址
 const imageUrlPrefix = 'http://192.168.2.241:82'
 module.exports={
     host,
-    prefix:'/api/icss',            //带权限验证的api
+    prefix:'/api/icssyz',            //带权限验证的api
     imageUrlPrefix
 };