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: '', id: '',
parentId: 0 parentId: 0
}, },
doctorId: JSON.parse(window.sessionStorage.getItem('qg-userData')).idid,
doctorId: JSON.parse(window.sessionStorage.getItem('qg-userData')).id,
collectData: [], collectData: [],
tableData: [], tableData: [],
defaultProps: { defaultProps: {

2
src/components/patient-search/index.vue

@ -105,7 +105,7 @@ export default {
return { return {
uploadUrl: window.SITE_CONFIG['apiURL'] + '/patient/data/searchByExcel', uploadUrl: window.SITE_CONFIG['apiURL'] + '/patient/data/searchByExcel',
headers: { headers: {
token: window.sessionStorage.setItem('xa-token')
token: window.sessionStorage.get('xa-token')
}, },
dataForm: {}, dataForm: {},
keyWord: '', keyWord: '',

2
src/page-subspecialty/utils/request.js

@ -9,8 +9,8 @@ import store from '../store'
*/ */
export function clearLoginInfo() { export function clearLoginInfo() {
store.commit('resetStore') store.commit('resetStore')
Cookies.remove('xa-token')
window.localStorage.clear() window.localStorage.clear()
window.sessionStorage.clear()
window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false
} }

2
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/historyRecord.vue

@ -54,7 +54,7 @@ export default {
patientId: this.patientId patientId: this.patientId
}, },
headers: { headers: {
token: window.sessionStorage.setItem('xa-token')
token: window.sessionStorage.getItem('xa-token')
}, },
filePath: '', filePath: '',
recordList: [], recordList: [],

Loading…
Cancel
Save