mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Add anchor id to fragment part (#328)
This commit is contained in:
parent
061ce45474
commit
f677a588b2
@ -275,7 +275,10 @@ NexT.utils = {
|
|||||||
targets : document.scrollingElement,
|
targets : document.scrollingElement,
|
||||||
duration : 500,
|
duration : 500,
|
||||||
easing : 'linear',
|
easing : 'linear',
|
||||||
scrollTop: offset + 10
|
scrollTop: offset + 10,
|
||||||
|
complete : () => {
|
||||||
|
history.pushState(null, document.title, element.href);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return target;
|
return target;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user