seimin 1 year ago
parent
commit
3b11a2ac1c
2 changed files with 5 additions and 5 deletions
  1. 4 4
      src/components/AppHeader.vue
  2. 1 1
      src/main.js

+ 4 - 4
src/components/AppHeader.vue

@@ -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
     }

+ 1 - 1
src/main.js

@@ -14,7 +14,7 @@ Vue.use(fullScreenContainer)
14 14
 Vue.prototype.$moment = moment
15 15
 
16 16
 Vue.config.productionTip = false
17
-console.info('v2.4.2')
17
+console.info('v2.4.3')
18 18
 
19 19
 new Vue({
20 20
   router,