install product viewer component
This commit is contained in:
parent
1eef285dc3
commit
4e8c876dac
219 changed files with 1327 additions and 55 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue