Add logout action
This commit is contained in:
parent
1d39fc7976
commit
b2b934cfb3
@ -27,6 +27,11 @@ const store = createStore({
|
||||
state.Session.Token = token;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
logout({state, commit, rootState}){
|
||||
commit("setToken", null);
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
dashboard,
|
||||
budget
|
||||
|
Loading…
x
Reference in New Issue
Block a user