From 6ba0f778c6f0122ba2497f1832b5f809f269781a Mon Sep 17 00:00:00 2001 From: bianyaqi Date: Wed, 17 May 2023 16:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=92=8Cto?= =?UTF-8?q?ken=E5=82=A8=E5=AD=98=E5=86=8Dsession=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/360View/collection.vue | 2 +- src/components/patient-search/index.vue | 2 +- src/page-subspecialty/utils/request.js | 2 +- .../modules/optometryManagement/seeDoctor/historyRecord.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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: [],