erp-el-element/utils/get-page-title.js

11 lines
235 B
JavaScript
Raw Normal View History

2024-05-07 11:51:58 +08:00
import defaultSettings from '@/settings'
const title = defaultSettings.title || 'Vue Admin Template'
export default function getPageTitle(pageTitle) {
if (pageTitle) {
return `${pageTitle} - ${title}`
}
return `${title}`
}