mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
fix-open-scroll (#2602)
This commit is contained in:
@@ -42,6 +42,14 @@ class Wiki extends Component {
|
||||
selectedDirentList: [],
|
||||
};
|
||||
window.onpopstate = this.onpopstate;
|
||||
this.hash = '';
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
const hash = window.location.hash;
|
||||
if (hash.slice(0, 1) === '#') {
|
||||
this.hash = hash;
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@@ -775,6 +783,7 @@ class Wiki extends Component {
|
||||
onItemsMove={this.onMoveItems}
|
||||
onItemsCopy={this.onCopyItems}
|
||||
onItemsDelete={this.onDeleteItems}
|
||||
hash={this.hash}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user