mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix(history): use hashHistory
This commit is contained in:
@@ -550,7 +550,7 @@ class NoteList extends React.Component {
|
||||
|
||||
cloneNote () {
|
||||
const { selectedNoteKeys } = this.state
|
||||
const { dispatch } = this.props
|
||||
const { dispatch, location } = this.props
|
||||
const { router } = this.context
|
||||
const { storage, folder } = this.resolveTargetFolder()
|
||||
const notes = this.notes.map((note) => Object.assign({}, note))
|
||||
@@ -578,6 +578,11 @@ class NoteList extends React.Component {
|
||||
this.setState({
|
||||
selectedNoteKeys: [uniqueKey]
|
||||
})
|
||||
|
||||
hashHistory.push({
|
||||
pathname: location.pathname,
|
||||
query: {key: note.storage + '-' + note.key}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user