From 45bd355529c4bad747c56b4b3299f7b795b04d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Wed, 26 Aug 2020 18:56:32 +0800 Subject: [PATCH] Update sidebar.js --- src/core/event/sidebar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/event/sidebar.js b/src/core/event/sidebar.js index c7ade0c77..0e1f028c1 100644 --- a/src/core/event/sidebar.js +++ b/src/core/event/sidebar.js @@ -95,6 +95,7 @@ export function getAndActive(router, el, isParent, autoTitle) { dom.toggleClass(node, 'remove', 'active'); } }); + if (autoTitle) { dom.$.title = target ? target.title || `${target.innerText} - ${title}`