Эх сурвалжийг харах

Chore: fix error anchor link (#13753)

iamkun 6 жил өмнө
parent
commit
4cb34a08d3

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