We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d4dbe commit 55705dcCopy full SHA for 55705dc
web/src/components/tools/Logo.vue
@@ -5,7 +5,7 @@
5
<img v-if="navTheme === 'dark'" src="~@/assets/logo-white.png" alt="logo">
6
<img v-else src="~@/assets/logo.png" alt="logo">
7
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
8
- <h1 v-if="showTitle">{{ title }}</h1>
+ <h1 v-if="showTitle">{{ brandName }}</h1>
9
</router-link>
10
</div>
11
</template>
@@ -17,17 +17,17 @@
17
name: 'Logo',
18
mixins: [mixin],
19
props: {
20
- title: {
21
- type: String,
22
- default: 'Teaching',
23
- required: false
24
- },
25
showTitle: {
26
type: Boolean,
27
default: true,
28
required: false
29
}
30
- }
+ },
+ data () {
+ return {
+ brandName: window._CONFIG['brandName']
+ }
31
32
</script>
33
<style lang="less" scoped>
0 commit comments