11
This commit is contained in:
@@ -5,8 +5,8 @@ import { useAuthStore } from "../stores/auth";
|
||||
const router = useRouter();
|
||||
const auth = useAuthStore();
|
||||
|
||||
function onLogout() {
|
||||
auth.logout();
|
||||
async function onLogout() {
|
||||
await auth.logout();
|
||||
router.push({ name: "login" });
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user