Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/core/event/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ export function getAndActive(router, el, isParent, autoTitle) {
})

if (autoTitle) {
dom.$.title = target ? `${target.innerText} - ${title}` : title
if(target && target.title){
dom.$.title = target.title
}else{
dom.$.title = target ? `${target.innerText} - ${title}` : title
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dom.$.title = target ? (target.title || `${target.innerText} - ${title}`) : title

This performance is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}

return target
Expand Down