Clear notes from vuex store when logging out
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user