import storage from '@/utils/storage'

export default function getPageTitle(pageTitle) {
  const app_info = storage.get('app_info')
  const title = app_info ? app_info.sys_app_name : '可观测平台'
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
