mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
fix-open-scroll (#2602)
This commit is contained in:
@@ -20,6 +20,7 @@ const propTypes = {
|
||||
lastModified: PropTypes.string,
|
||||
latestContributor: PropTypes.string,
|
||||
permission: PropTypes.string,
|
||||
hash: PropTypes.string,
|
||||
path: PropTypes.string.isRequired,
|
||||
// whether the file or dir corresponding to the path exist
|
||||
pathExist: PropTypes.bool.isRequired,
|
||||
@@ -82,6 +83,12 @@ class MainPanel extends Component {
|
||||
setTimeout(function() {
|
||||
that.getTitlesInfo();
|
||||
}, 500);
|
||||
if (this.props.hash) {
|
||||
let hash = this.props.hash;
|
||||
setTimeout(function() {
|
||||
window.location.hash = hash;
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
switchViewMode = (mode) => {
|
||||
|
Reference in New Issue
Block a user