mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
5 lines
223 B
HTML
5 lines
223 B
HTML
<script>
|
|
var prefix = /^\/components/.test(location.pathname) ? location.pathname.replace(/^\//, '').split('/').join('-') : '';
|
|
location.href = '/#' + location.pathname.replace(/\/?#/, '?scrollTo=' + prefix);
|
|
</script>
|