mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 03:14:07 +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(() => {
|
||||
if (window.location.hash) {
|
||||
document.querySelector(window.location.hash).scrollIntoView();
|
||||
document.querySelector(decodeURIComponent(window.location.hash)).scrollIntoView();
|
||||
}
|
||||
}, 50);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user