fix reloading after path change
This commit is contained in:
parent
93d1068cf2
commit
81c1e8df88
|
@ -156,6 +156,7 @@ export default {
|
|||
this.$router.push('/')
|
||||
}
|
||||
store.commit('removeAllNotes')
|
||||
store.commit('clearSyncCache')
|
||||
this.loading.notes = true
|
||||
this.loadNotes()
|
||||
},
|
||||
|
|
|
@ -22,6 +22,11 @@ const mutations = {
|
|||
}
|
||||
},
|
||||
|
||||
clearSyncCache(state) {
|
||||
state.etag = null
|
||||
state.lastModified = 0
|
||||
},
|
||||
|
||||
setSyncActive(state, active) {
|
||||
state.active = active
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue