Closed smz8023 closed 3 weeks ago
https://github.com/vuepress/ecosystem/blob/v2.0.0-rc.35/themes/theme-default/src/client/components/VPSidebarItems.vue 当前vue文件中的选择器错误: // get the active sidebar item DOM, whose href equals to the current route const activeSidebarItem = document.querySelector( .vp=sidebar a.vp-sidebar-item[href="${route.path}${hash}"], ) .vp=sidebar应该为.vp-sidebar
.vp=sidebar a.vp-sidebar-item[href="${route.path}${hash}"]
https://stackblitz.com/edit/vuepress-fzwxtj?file=package.json
npm
版本:v2.0.0-rc.35
Already fixed in https://github.com/vuepress/ecosystem/commit/0a29075388cb435e5f95d25dc1b54abbcd343d9a
Thanks for reporting anyway.
Description
https://github.com/vuepress/ecosystem/blob/v2.0.0-rc.35/themes/theme-default/src/client/components/VPSidebarItems.vue 当前vue文件中的选择器错误: // get the active sidebar item DOM, whose href equals to the current route const activeSidebarItem = document.querySelector(![image](https://github.com/vuepress/ecosystem/assets/31838004/72e39e02-55c2-4332-8454-de70dc4a0b49)
.vp=sidebar a.vp-sidebar-item[href="${route.path}${hash}"]
, ) .vp=sidebar应该为.vp-sidebarReproduction
https://stackblitz.com/edit/vuepress-fzwxtj?file=package.json
Used Package Manager
npm
System Info