create logout

parent da2dac99
...@@ -18,7 +18,22 @@ ...@@ -18,7 +18,22 @@
fit="contain" fit="contain"
:ratio="16 / 9" :ratio="16 / 9"
/></q-toolbar-title> /></q-toolbar-title>
<q-btn flat round dense icon="mdi-account-circle-outline" /> <q-space></q-space>
<q-btn flat round icon="mdi-account-circle-outline">
<q-menu auto-close :offset="[110, 0]">
<q-list style="min-width: 150px">
<q-item
clickable
@click="$store.dispatch('authentication/logOut')"
>
<q-item-section>Đăng xuất</q-item-section>
<q-item-section avatar>
<q-icon name="mdi-logout-variant" />
</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
</q-toolbar> </q-toolbar>
</q-header> </q-header>
......
<template> <template>
<q-page class="row items-center justify-evenly"> <q-page class="row items-center justify-evenly">
<q-btn color="primary" @click="$store.dispatch('authentication/logOut')" <!-- <q-btn color="primary" @click="$store.dispatch('authentication/logOut')"
>Logout</q-btn >Logout</q-btn
> > -->
</q-page> </q-page>
</template> </template>
......
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