Files
JM-admin/src/utils/page.js
2023-01-10 11:52:47 +08:00

10 lines
283 B
JavaScript

import { fmtTitle } from '@/utils/fmtRouterTitle'
import config from '@/core/config'
export default function getPageTitle(pageTitle, route) {
if (pageTitle) {
const title = fmtTitle(pageTitle, route)
return `${title} - ${config.appName}`
}
return `${config.appName}`
}