Clear notes from vuex store when logging out

This commit is contained in:
2020-06-14 15:28:55 +02:00
parent dbf3b4344d
commit c4f95179c9
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -12,6 +12,10 @@ export const mutations = {
delete(state, uuid) {
state.notes = state.notes.filter((e) => e.uuid !== uuid)
},
// used when logging out
clear(state) {
state.notes = []
},
}
export const actions = {