mirror of https://github.com/ElemeFE/element
Chore: fix error anchor link (#13753)
parent
16311d1e32
commit
4cb34a08d3
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue