install product viewer component

This commit is contained in:
isUnknown 2024-11-13 07:46:32 +01:00
parent 1eef285dc3
commit 4e8c876dac
219 changed files with 1327 additions and 55 deletions

View file

@ -5,7 +5,9 @@ export const useUserStore = defineStore("user", () => {
const user = ref(null);
const notifications = computed(() => {
return user.value.notifications;
return typeof user.value.notifications === "array"
? user.value.notifications
: Object.values(user.value.notifications);
});
return { user, notifications };