rt-sim-training-client/src/utils/get-page-title.js

11 lines
230 B
JavaScript
Raw Normal View History

2019-07-02 16:29:52 +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}`
}