diff --git a/src/core/event/index.js b/src/core/event/index.js index 12fa3c78c..9ec8d6778 100644 --- a/src/core/event/index.js +++ b/src/core/event/index.js @@ -313,11 +313,13 @@ export function Events(Base) { * @void */ onRender() { - const { name } = this.config; const currentPath = this.router.toURL(this.router.getCurrentPath()); const currentSection = dom .find(`.sidebar a[href='${currentPath}']`) ?.getAttribute('title'); + let { name } = this.config; + + name = name ? name.replace(/<[^>]+>/g, '') : name; const currentTitle = name ? currentSection