feat: 获取标题非空判断

This commit is contained in:
fit2cloud-chenyw 2021-05-12 16:58:36 +08:00
parent 469aa684fc
commit f62f3e635c

View File

@ -5,7 +5,7 @@ let title = defaultSettings.title || 'Vue Admin Template'
export default function getPageTitle(pageTitle) {
const uiInfo = getSysUI()
if (uiInfo['ui.title'] && uiInfo['ui.title'].paramValue) {
if (uiInfo && uiInfo['ui.title'] && uiInfo['ui.title'].paramValue) {
title = uiInfo['ui.title'].paramValue
}
if (pageTitle) {