Add logout action

This commit is contained in:
Jan Bader 2022-01-23 22:38:38 +00:00
parent 1d39fc7976
commit b2b934cfb3

View File

@ -27,6 +27,11 @@ const store = createStore({
state.Session.Token = token; state.Session.Token = token;
} }
}, },
actions: {
logout({state, commit, rootState}){
commit("setToken", null);
}
},
modules: { modules: {
dashboard, dashboard,
budget budget