seimin vor 1 Jahr
Ursprung
Commit
2b02f22835
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. 5 3
      src/components/AppHeader.vue
  2. 1 1
      src/main.js

+ 5 - 3
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>
@@ -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
     }

+ 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,