This commit is contained in:
rca 2024-07-18 23:09:30 +09:00
parent 7fd2de6d77
commit a72f491818

View File

@ -1,10 +1,12 @@
import { ActionTree } from 'vuex'; import { ActionTree } from 'vuex';
import { StateInterface } from '../index'; import { StateInterface } from '../index';
import { ExampleStateInterface } from './state'; import { AccountStateInterface } from './state';
const actions: ActionTree<ExampleStateInterface, StateInterface> = { const actions: ActionTree<AccountStateInterface, StateInterface> = {
someAction (/* context */) { logout(context) {
// your code context.commit('setToken', '');
context.commit('setUsername', '');
context.commit('setLoggedIn', false);
} }
}; };