修复title不跟随参数变更的bug
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { fmtTitle } from '@/utils/fmtRouterTitle'
|
||||
import config from '@/core/config'
|
||||
export default function getPageTitle(pageTitle) {
|
||||
export default function getPageTitle(pageTitle, route) {
|
||||
if (pageTitle) {
|
||||
return `${pageTitle} - ${config.appName}`
|
||||
const title = fmtTitle(pageTitle, route)
|
||||
return `${title} - ${config.appName}`
|
||||
}
|
||||
return `${config.appName}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user