get-page-title.js
390 Bytes
/*
* @Description: 获取浏览器便签标题
* @Autor: renchao
* @LastEditTime: 2023-05-17 15:51: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}`
}