From a72f491818ad698a893fdbb20617233fe669da05 Mon Sep 17 00:00:00 2001 From: rca Date: Thu, 18 Jul 2024 23:09:30 +0900 Subject: [PATCH] actions --- src/store/account/actions.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/store/account/actions.ts b/src/store/account/actions.ts index 8042ef0..27bb88f 100644 --- a/src/store/account/actions.ts +++ b/src/store/account/actions.ts @@ -1,10 +1,12 @@ import { ActionTree } from 'vuex'; import { StateInterface } from '../index'; -import { ExampleStateInterface } from './state'; +import { AccountStateInterface } from './state'; -const actions: ActionTree = { - someAction (/* context */) { - // your code +const actions: ActionTree = { + logout(context) { + context.commit('setToken', ''); + context.commit('setUsername', ''); + context.commit('setLoggedIn', false); } };