feat: add configuration of hiding page title in PageLayout; ⭐ #106
新增:增加隐藏 PageLayout 布局中页面标题的配置;
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user