提交 | 用户 | age | ||
2a61f6 | 1 | import defaultSettings from '@/settings' |
L | 2 | |
3 | const title = defaultSettings.title || 'Vue Admin Template' | |
4 | ||
5 | export default function getPageTitle(pageTitle) { | |
6 | if (pageTitle) { | |
7 | return `${pageTitle} - ${title}` | |
8 | } | |
9 | return `${title}` | |
10 | } |