mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
site: fix hash
This commit is contained in:
parent
54e24421d1
commit
96e0cb5313
@ -72,7 +72,7 @@ export default class MainContent extends React.Component {
|
|||||||
}
|
}
|
||||||
this.timer = setTimeout(() => {
|
this.timer = setTimeout(() => {
|
||||||
if (window.location.hash) {
|
if (window.location.hash) {
|
||||||
document.querySelector(window.location.hash).scrollIntoView();
|
document.querySelector(decodeURIComponent(window.location.hash)).scrollIntoView();
|
||||||
}
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user