2019-08-02 10:36:17 +08:00
|
|
|
import defaultSettings from '@/settings';
|
2019-07-02 16:29:52 +08:00
|
|
|
|
2019-08-02 10:36:17 +08:00
|
|
|
const title = defaultSettings.title || 'Vue Admin Template';
|
2019-07-02 16:29:52 +08:00
|
|
|
|
|
|
|
export default function getPageTitle(pageTitle) {
|
|
|
|
if (pageTitle) {
|
2019-08-02 10:36:17 +08:00
|
|
|
return `${pageTitle} - ${title}`;
|
2019-07-02 16:29:52 +08:00
|
|
|
}
|
2019-08-02 10:36:17 +08:00
|
|
|
return `${title}`;
|
2019-07-02 16:29:52 +08:00
|
|
|
}
|