mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-26 00:34:01 +00:00
wip
This commit is contained in:
parent
a9bad46078
commit
53b1914c72
|
@ -1,12 +1,15 @@
|
||||||
import { ActionTree } from 'vuex';
|
import { ActionTree } from 'vuex';
|
||||||
import { RootStateInterface } from '../index';
|
import { RootStateInterface } from '../index';
|
||||||
import { AccountStateInterface } from './state';
|
import { AccountStateInterface } from './state';
|
||||||
|
import { getChildDetails } from 'src/api/apiService';
|
||||||
|
|
||||||
const actions: ActionTree<AccountStateInterface, RootStateInterface> = {
|
const actions: ActionTree<AccountStateInterface, RootStateInterface> = {
|
||||||
logout(context) {
|
logout(context) {
|
||||||
context.commit('setToken', '');
|
context.commit('setToken', '');
|
||||||
context.commit('setUsername', '');
|
context.commit('setUsername', '');
|
||||||
context.commit('setLoggedIn', false);
|
context.commit('setLoggedIn', false);
|
||||||
|
},
|
||||||
|
fetchAccount(context) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user