Files
lckt-admin/src/utils/page.js
2025-04-09 12:10:46 +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}`
}