get-page-title.js
312 Bytes
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-16 13:31:27
*/
// 获取浏览器便签标题
import Vue from 'vue'
const title = Vue.prototype.BASE_API.TITLE
export default function getPageTitle (pageTitle) {
if (pageTitle) {
return `${pageTitle} - ${title}`
}
return `${title}`
}