iamkun 6 лет назад
Родитель
Сommit
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 => {