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
+1
View File
@@ -50,6 +50,7 @@ export default {
},
methods: {
async logout() {
this.$store.commit('notes/clear')
await this.$auth.logout()
},
toggleTheme() {