Blame view

src/utils/get-page-title.js 235 Bytes
80a28914e   吉鹏   init
1
2
3
4
5
6
7
8
9
10
  import defaultSettings from '@/settings'
  
  const title = defaultSettings.title || 'Vue Admin Template'
  
  export default function getPageTitle(pageTitle) {
    if (pageTitle) {
      return `${pageTitle} - ${title}`
    }
    return `${title}`
  }