系统布局配置支持动态标题开关

This commit is contained in:
RuoYi
2021-06-10 18:05:27 +08:00
parent a3116cd27d
commit 557672ba9f
11 changed files with 55 additions and 7 deletions

View File

@ -6,6 +6,14 @@
<script>
export default {
name: 'App'
name: 'App',
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
titleTemplate: title => {
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
}
}
}
}
</script>