Chore: fix error anchor link (#13753)

pull/13773/head
iamkun 2018-12-14 11:14:46 +08:00 committed by hetech
parent 16311d1e32
commit 4cb34a08d3
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@
methods: {
renderAnchorHref() {
if (/changelog/g.test(location.href)) return;
const anchors = document.querySelectorAll('h2 a,h3 a');
const anchors = document.querySelectorAll('h2 a,h3 a,h4 a,h5 a');
const basePath = location.href.split('#').splice(0, 2).join('#');
[].slice.call(anchors).forEach(a => {