|
@@ -7,8 +7,8 @@
|
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="./../assets/img/logo.png" />
|
11
|
|
- 大势输送保障管理平台
|
|
10
|
+ <img class="app-header__logo" :src="logoUrl" />
|
|
11
|
+ {{logoTitle}}
|
12
|
12
|
</h1>
|
13
|
13
|
</div>
|
14
|
14
|
<!-- /头部线条及标题 -->
|
|
@@ -35,6 +35,7 @@
|
35
|
35
|
</template>
|
36
|
36
|
|
37
|
37
|
<script>
|
|
38
|
+import { get } from './../http/http'
|
38
|
39
|
import AppToday from './AppToday'
|
39
|
40
|
import AppCumulative from './AppCumulative'
|
40
|
41
|
export default {
|
|
@@ -96,10 +97,20 @@ export default {
|
96
|
97
|
this.time = Date.now()
|
97
|
98
|
this.runTime()
|
98
|
99
|
}, 500)
|
|
100
|
+ },
|
|
101
|
+ getSysNameAndLogo () {
|
|
102
|
+ get('/auth/getSysNameAndLogo')
|
|
103
|
+ .then((result) => {
|
|
104
|
+ this.logoTitle = result.largeScreenName || ''
|
|
105
|
+ this.logoUrl = result.favicon || ''
|
|
106
|
+ document.querySelector('#favicon').href = result.favicon || ''
|
|
107
|
+ document.title = this.logoTitle
|
|
108
|
+ })
|
99
|
109
|
}
|
100
|
110
|
},
|
101
|
111
|
mounted () {
|
102
|
112
|
this.runTime()
|
|
113
|
+ this.getSysNameAndLogo()
|
103
|
114
|
},
|
104
|
115
|
beforeDestroy () {
|
105
|
116
|
clearTimeout(this.timer)
|