fix reloading after path change

This commit is contained in:
korelstar 2021-03-12 21:59:59 +01:00
parent 93d1068cf2
commit 81c1e8df88
2 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,7 @@ export default {
this.$router.push('/')
}
store.commit('removeAllNotes')
store.commit('clearSyncCache')
this.loading.notes = true
this.loadNotes()
},

View File

@ -22,6 +22,11 @@ const mutations = {
}
},
clearSyncCache(state) {
state.etag = null
state.lastModified = 0
},
setSyncActive(state, active) {
state.active = active
},