update logout

parent 63934809
......@@ -67,7 +67,7 @@ export default boot<StateInterface>(({ app, store }) => {
type: 'warning',
message: i18n.global.t('tokenInvalidMessage'),
});
void store.dispatch('authentication/logOut');
void store.dispatch('authentication/logOutNotNotification');
// ... Logout
} else {
Notify.create({
......
<template>
<q-page padding>
<!-- content -->
</q-page>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
// name: 'PageName'
})
</script>
......@@ -94,6 +94,13 @@ const actions: ActionTree<AuthenticationState, StateInterface> = {
});
await Router.push({ name: Pages.login });
},
async logOutNotNotification(context) {
context.commit('setToken', undefined);
context.commit('setUserInfo', undefined);
context.commit('setPageInfo', undefined);
context.commit('setGroupInfo', undefined);
await Router.push({ name: Pages.login });
},
async getListPages(context) {
try {
const response = (await api({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment