diff --git a/src/components/360View/afterPart/index-copy.vue b/src/components/360View/afterPart/index-copy.vue index 7c7a4bc..4213b33 100644 --- a/src/components/360View/afterPart/index-copy.vue +++ b/src/components/360View/afterPart/index-copy.vue @@ -359,7 +359,7 @@ export default { created() { }, mounted() { - this.userData = JSON.parse(window.localStorage.getItem('qg-userData')) + this.userData = this.$store.state.currentUser this.doctorId = this.userData.id this.queryOptions() this.getforeList() @@ -611,7 +611,8 @@ export default { queryTree(type) { const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' return new Promise((resolve, reject) => { - axios.defaults.headers.common['token'] = Cookies.get('xa-token') || '' + const employeeId = this.$store.state.currentUser.employeeId + axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || '' axios.get(baseUrl, { params: { doctorId: this.doctorId, diff --git a/src/components/360View/afterPart/index.vue b/src/components/360View/afterPart/index.vue index 533d093..f1be0d8 100644 --- a/src/components/360View/afterPart/index.vue +++ b/src/components/360View/afterPart/index.vue @@ -1,6 +1,6 @@