|
@@ -100,8 +100,8 @@ export default {
|
100
|
100
|
this.runTime()
|
101
|
101
|
}, 500)
|
102
|
102
|
},
|
103
|
|
- getSysNameAndLogo () {
|
104
|
|
- get('/auth/getSysNameAndLogo')
|
|
103
|
+ getSysNameAndLogo (hosId) {
|
|
104
|
+ get('/auth/getSysNameAndLogo' + (hosId ? '?hosId=' + hosId : ''))
|
105
|
105
|
.then((result) => {
|
106
|
106
|
this.logoTitle = result.largeScreenName || ''
|
107
|
107
|
this.faviconUrl = location.origin + '/file' + result.favicon || ''
|
|
@@ -111,8 +111,10 @@ export default {
|
111
|
111
|
}
|
112
|
112
|
},
|
113
|
113
|
mounted () {
|
|
114
|
+ const loginUser = JSON.parse(localStorage.getItem('user'))
|
|
115
|
+ const hosId = loginUser.user.currentHospital ? loginUser.user.currentHospital.id : ''
|
114
|
116
|
this.runTime()
|
115
|
|
- this.getSysNameAndLogo()
|
|
117
|
+ this.getSysNameAndLogo(hosId)
|
116
|
118
|
},
|
117
|
119
|
beforeDestroy () {
|
118
|
120
|
clearTimeout(this.timer)
|