Skip to content

Commit 55705dc

Browse files
committed
brandName
1 parent 60d4dbe commit 55705dc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

web/src/components/tools/Logo.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<img v-if="navTheme === 'dark'" src="~@/assets/logo-white.png" alt="logo">
66
<img v-else src="~@/assets/logo.png" alt="logo">
77
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
8-
<h1 v-if="showTitle">{{ title }}</h1>
8+
<h1 v-if="showTitle">{{ brandName }}</h1>
99
</router-link>
1010
</div>
1111
</template>
@@ -17,17 +17,17 @@
1717
name: 'Logo',
1818
mixins: [mixin],
1919
props: {
20-
title: {
21-
type: String,
22-
default: 'Teaching',
23-
required: false
24-
},
2520
showTitle: {
2621
type: Boolean,
2722
default: true,
2823
required: false
2924
}
30-
}
25+
},
26+
data () {
27+
return {
28+
brandName: window._CONFIG['brandName']
29+
}
30+
},
3131
}
3232
</script>
3333
<style lang="less" scoped>

0 commit comments

Comments
 (0)