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