Blame view

src/utils/get-page-title.js 312 Bytes
任超 committed
1 2 3
/*
 * @Description: 
 * @Autor: renchao
任超 committed
4
 * @LastEditTime: 2023-03-16 13:31:27
任超 committed
5
 */
任超 committed
6
// 获取浏览器便签标题
任超 committed
7 8
import Vue from 'vue'
const title = Vue.prototype.BASE_API.TITLE
任超 committed
9

任超 committed
10
export default function getPageTitle (pageTitle) {
任超 committed
11 12 13 14 15
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}