|
@@ -70,8 +70,8 @@ export default {
|
70
|
70
|
this.runTime()
|
71
|
71
|
}, 500)
|
72
|
72
|
},
|
73
|
|
- getSysNameAndLogo () {
|
74
|
|
- get('/auth/getSysNameAndLogo')
|
|
73
|
+ getSysNameAndLogo (hosId) {
|
|
74
|
+ get('/auth/getSysNameAndLogo' + (hosId ? '?hosId=' + hosId : ''))
|
75
|
75
|
.then((result) => {
|
76
|
76
|
this.logoTitle = result.largeScreenName || ''
|
77
|
77
|
this.faviconUrl = location.origin + '/file' + result.favicon || ''
|
|
@@ -81,8 +81,10 @@ export default {
|
81
|
81
|
}
|
82
|
82
|
},
|
83
|
83
|
mounted () {
|
|
84
|
+ const loginUser = JSON.parse(localStorage.getItem('user'))
|
|
85
|
+ const hosId = loginUser.user.currentHospital ? loginUser.user.currentHospital.id : ''
|
84
|
86
|
this.runTime()
|
85
|
|
- this.getSysNameAndLogo()
|
|
87
|
+ this.getSysNameAndLogo(hosId)
|
86
|
88
|
},
|
87
|
89
|
beforeDestroy () {
|
88
|
90
|
clearTimeout(this.timer)
|