send notification user method working

This commit is contained in:
isUnknown 2024-10-30 10:56:11 +01:00
parent 14f409abec
commit 9752fffae6
7 changed files with 67 additions and 18 deletions

View file

@ -1,8 +1,12 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import { ref, computed } from "vue";
export const useUserStore = defineStore("user", () => {
const user = ref(null);
return { user };
const notifications = computed(() => {
return user.value.notifications;
});
return { user, notifications };
});