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 { StateInterface } from '../index';
import { ExampleStateInterface } from './state';
import { AccountStateInterface } from './state';
const actions: ActionTree<ExampleStateInterface, StateInterface> = {
someAction (/* context */) {
// your code
const actions: ActionTree<AccountStateInterface, StateInterface> = {
logout(context) {
context.commit('setToken', '');
context.commit('setUsername', '');
context.commit('setLoggedIn', false);
}
};