{"size": 240, "ext": "js", "max_stars_repo_path": "src/utils/get-page-title.js", "max_stars_repo_name": "johnnymillergh/jm-vue-admin-template", "max_stars_repo_stars_event_min_datetime": "2019-04-28T15:38:34.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-13T05:54:54.000Z", "max_issues_repo_path": "src/utils/get-page-title.js", "max_issues_repo_name": "johnnymillergh/jm-vue-admin-template", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/get-page-title.js", "max_forks_repo_name": "johnnymillergh/jm-vue-admin-template", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.8181818182, "max_line_length": 70, "alphanum_fraction": 0.6583333333}
import AppUtil from '@/utils/app'

const title = AppUtil.getName().replace(/-/g, ' ').toLocaleUpperCase()

export default function getPageTitle (pageTitle) {
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
