Browse Source

回读时清除localStorage中的推送参数(2659)

zhangxc 5 years ago
parent
commit
329d5eff4b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/store/async-actions/patInfo.js

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

@@ -2,7 +2,7 @@ import {get, post, json} from "../../utils/ajax";
 import {GET_PATIENT_MESSAGE,GET_HOSPITAL_MESSAGE} from "../types/patInfo";
 import {GET_PATIENT_MESSAGE,GET_HOSPITAL_MESSAGE} from "../types/patInfo";
 import {CONFIRM_TYPE} from "../types/typeConfig";
 import {CONFIRM_TYPE} from "../types/typeConfig";
 import {getInfos} from '@store/actions/getInfoByUuid';
 import {getInfos} from '@store/actions/getInfoByUuid';
-import {getUrlArgObject,pushAllDataList} from '@utils/tools';
+import {getUrlArgObject,pushAllDataList,storageLocal} from '@utils/tools';
 import {getInitModules,getCommonList} from '@store/async-actions/homePage.js';
 import {getInitModules,getCommonList} from '@store/async-actions/homePage.js';
 import store from '@store'
 import store from '@store'
 import {ISREAD,MODI_LOADING,SETPRE,SETPREDATA} from "../types/homePage";
 import {ISREAD,MODI_LOADING,SETPRE,SETPREDATA} from "../types/homePage";
@@ -81,6 +81,7 @@ export const initPersonInfo = (dispatch, getState) => {
 export const initHistoryDetails = (dispatch) => {
 export const initHistoryDetails = (dispatch) => {
     let baseList = store.getState();
     let baseList = store.getState();
     let state = baseList.patInfo.message;
     let state = baseList.patInfo.message;
+    storageLocal.remove('emrParam');
     return (dispatch) => {
     return (dispatch) => {
         json('/inquiryInfo/readInquiry', {
         json('/inquiryInfo/readInquiry', {
             "doctorId": state.doctorId,
             "doctorId": state.doctorId,