get-page-title.js 350 Bytes
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-03-15 14:37:05
 */
// 获取浏览器便签标题
import defaultSettings from '@/settings'
import config from '@/api/config'

const title = config.TITLE

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