get-page-title.js
310 Bytes
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 17:14:42
*/
// 获取浏览器便签标题
import config from '/public/config'
const title = config.TITLE
export default function getPageTitle (pageTitle) {
if (pageTitle) {
return `${pageTitle} - ${title}`
}
return `${title}`
}