diff --git a/src/components/360View/collection.vue b/src/components/360View/collection.vue index 0843b85..40ab9f4 100644 --- a/src/components/360View/collection.vue +++ b/src/components/360View/collection.vue @@ -88,7 +88,7 @@ export default { id: '', parentId: 0 }, - doctorId: JSON.parse(window.sessionStorage.getItem('qg-userData')).idid, + doctorId: JSON.parse(window.sessionStorage.getItem('qg-userData')).id, collectData: [], tableData: [], defaultProps: { diff --git a/src/components/patient-search/index.vue b/src/components/patient-search/index.vue index 2075032..7e01e47 100644 --- a/src/components/patient-search/index.vue +++ b/src/components/patient-search/index.vue @@ -105,7 +105,7 @@ export default { return { uploadUrl: window.SITE_CONFIG['apiURL'] + '/patient/data/searchByExcel', headers: { - token: window.sessionStorage.setItem('xa-token') + token: window.sessionStorage.get('xa-token') }, dataForm: {}, keyWord: '', diff --git a/src/page-subspecialty/utils/request.js b/src/page-subspecialty/utils/request.js index 164a783..b8bd3a0 100644 --- a/src/page-subspecialty/utils/request.js +++ b/src/page-subspecialty/utils/request.js @@ -9,8 +9,8 @@ import store from '../store' */ export function clearLoginInfo() { store.commit('resetStore') - Cookies.remove('xa-token') window.localStorage.clear() + window.sessionStorage.clear() window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false } diff --git a/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue b/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue index 81a85fa..9fd70ff 100644 --- a/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue +++ b/src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue @@ -54,7 +54,7 @@ export default { patientId: this.patientId }, headers: { - token: window.sessionStorage.setItem('xa-token') + token: window.sessionStorage.getItem('xa-token') }, filePath: '', recordList: [],