Преглед изворни кода

Chore: fix error anchor link (#13753)

iamkun пре 6 година
родитељ
комит
4cb34a08d3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/pages/template/component.tpl

+ 1 - 1
examples/pages/template/component.tpl

@@ -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 => {