mt-ck-wms-ui/src/utils/get-page-title.js
2021-09-13 14:56:28 +08:00

22 lines
487 B
JavaScript

/*
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-02-26 09:11:54
* @Description: file content
*/
import i18n from '@/lang/i18n'
import Cookies from 'js-cookie'
const language = Cookies.get('language')
const title = i18n.title[language] || 'Vue Element Admin'
export default function getPageTitle(pageTitle) {
// 暂时注释,不需要模块名
// if (pageTitle) {
// return `${pageTitle} - ${title}`
// }
return `${title}`
}