|
@@ -7,7 +7,7 @@
|
7
|
7
|
<div class="app-header__main--leftBottom"></div>
|
8
|
8
|
<div class="app-header__main--rightBottom"></div>
|
9
|
9
|
<h1 class="app-header__title">
|
10
|
|
- <img class="app-header__logo" :src="logoUrl" />
|
|
10
|
+ <img class="app-header__logo" :src="faviconUrl" />
|
11
|
11
|
{{logoTitle}}
|
12
|
12
|
</h1>
|
13
|
13
|
</div>
|
|
@@ -46,6 +46,8 @@ export default {
|
46
|
46
|
},
|
47
|
47
|
data () {
|
48
|
48
|
return {
|
|
49
|
+ logoTitle: '',
|
|
50
|
+ faviconUrl: '',
|
49
|
51
|
time: new Date().getTime(), // 时间戳
|
50
|
52
|
timer: null, // 时间定时器
|
51
|
53
|
week: '' // 星期
|
|
@@ -102,8 +104,8 @@ export default {
|
102
|
104
|
get('/auth/getSysNameAndLogo')
|
103
|
105
|
.then((result) => {
|
104
|
106
|
this.logoTitle = result.largeScreenName || ''
|
105
|
|
- this.logoUrl = result.favicon || ''
|
106
|
|
- document.querySelector('#favicon').href = result.favicon || ''
|
|
107
|
+ this.faviconUrl = location.origin + '/file' + result.favicon || ''
|
|
108
|
+ document.querySelector('#favicon').href = this.faviconUrl
|
107
|
109
|
document.title = this.logoTitle
|
108
|
110
|
})
|
109
|
111
|
}
|