feat: add configuration of hiding page title in PageLayout; #106

新增:增加隐藏 PageLayout 布局中页面标题的配置;
This commit is contained in:
chenghongxing
2020-08-25 19:22:08 +08:00
parent de925b254e
commit 9f034092a9
3 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ export default {
...mapState('setting', ['layout', 'multiPage', 'pageMinHeight']),
pageTitle() {
let pageTitle = this.page && this.page.title
return this.title || this.$t(pageTitle) || this.routeName
return pageTitle === undefined ? (this.title || this.routeName) : this.$t(pageTitle)
},
routeName() {
const route = this.$route