From b2b934cfb340e4893b490a4426a7cff93760a5ce Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sun, 23 Jan 2022 22:38:38 +0000 Subject: [PATCH] Add logout action --- web/src/store/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/store/index.js b/web/src/store/index.js index 24b6552..aa21cd8 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -27,6 +27,11 @@ const store = createStore({ state.Session.Token = token; } }, + actions: { + logout({state, commit, rootState}){ + commit("setToken", null); + } + }, modules: { dashboard, budget