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