This commit is contained in:
2024-09-03 10:28:57 +02:00
parent d7e28cd926
commit 8140233e3a
5 changed files with 47 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
import { storeToRefs } from 'pinia'
import VueDatePicker from '@vuepic/vue-datepicker'
import { useSiteControlStore } from '@/stores/siteControl.store'
import { onMounted, ref } from 'vue'
import { onBeforeUnmount, onMounted, ref } from 'vue'
import { useCategoriesStore } from '@/stores/categories.store'
import type { Product } from '@/main'
@@ -73,6 +73,11 @@
console.log(products.value);
isLoading.value=false;
});
onBeforeUnmount( async function (){
const siteControlStore = useSiteControlStore();
await siteControlStore.newOrder(false);
})
</script>
<template>