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