Fixed highlight sidebar using chinese ids
This commit is contained in:
parent
9ba989c86c
commit
e5e1e07e1a
2 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
- Remove table background color
|
- Remove table background color
|
||||||
|
- Fixed highlight sidebar using chinese ids
|
||||||
|
|
||||||
## 1.1.5
|
## 1.1.5
|
||||||
### Features
|
### Features
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export function scrollActiveSidebar () {
|
||||||
|
|
||||||
if (href !== '/') href = href.match(/#([^#]+)$/g)[0].slice(1)
|
if (href !== '/') href = href.match(/#([^#]+)$/g)[0].slice(1)
|
||||||
|
|
||||||
nav[href] = li
|
nav[decodeURIComponent(href)] = li
|
||||||
}
|
}
|
||||||
|
|
||||||
function highlight () {
|
function highlight () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue