|
@@ -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>
|
|
@@ -34,7 +34,7 @@ export default {
|
34
|
34
|
data () {
|
35
|
35
|
return {
|
36
|
36
|
logoTitle: '',
|
37
|
|
- logoUrl: '',
|
|
37
|
+ faviconUrl: '',
|
38
|
38
|
time: new Date().getTime(), // 时间戳
|
39
|
39
|
timer: null, // 时间定时器
|
40
|
40
|
week: ''// 星期
|
|
@@ -74,8 +74,8 @@ export default {
|
74
|
74
|
get('/auth/getSysNameAndLogo')
|
75
|
75
|
.then((result) => {
|
76
|
76
|
this.logoTitle = result.largeScreenName || ''
|
77
|
|
- this.logoUrl = result.favicon || ''
|
78
|
|
- document.querySelector('#favicon').href = result.favicon || ''
|
|
77
|
+ this.faviconUrl = location.origin + '/file' + result.favicon || ''
|
|
78
|
+ document.querySelector('#favicon').href = this.faviconUrl
|
79
|
79
|
document.title = this.logoTitle
|
80
|
80
|
})
|
81
|
81
|
}
|