diff --git a/src/core/event/sidebar.js b/src/core/event/sidebar.js index 103e72436..b16cd70e2 100644 --- a/src/core/event/sidebar.js +++ b/src/core/event/sidebar.js @@ -78,7 +78,7 @@ export function getAndActive(router, el, isParent, autoTitle) { }) if (autoTitle) { - dom.$.title = target ? `${target.innerText} - ${title}` : title + dom.$.title = target ? (target.title || `${target.innerText} - ${title}`) : title } return target