mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +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>
|