Add anchor id to fragment part (#328)

This commit is contained in:
Mimi 2021-07-10 15:48:04 +08:00 committed by GitHub
parent 061ce45474
commit f677a588b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,10 @@ NexT.utils = {
targets : document.scrollingElement,
duration : 500,
easing : 'linear',
scrollTop: offset + 10
scrollTop: offset + 10,
complete : () => {
history.pushState(null, document.title, element.href);
}
});
});
return target;