page.js 283 B

123456789
  1. import { fmtTitle } from '@/utils/fmtRouterTitle'
  2. import config from '@/core/config'
  3. export default function getPageTitle(pageTitle, route) {
  4. if (pageTitle) {
  5. const title = fmtTitle(pageTitle, route)
  6. return `${title} - ${config.appName}`
  7. }
  8. return `${config.appName}`
  9. }