Browse Source

用户信息和token储存再session中

360view
bianyaqi 2 years ago
parent
commit
6ba0f778c6
  1. 2
      src/components/360View/collection.vue
  2. 2
      src/components/patient-search/index.vue
  3. 2
      src/page-subspecialty/utils/request.js
  4. 2
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue

2
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: {

2
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: '',

2
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
}

2
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: [],

Loading…
Cancel
Save