api / tickets

This commit is contained in:
HAM!DREZA
2024-05-29 22:31:05 +03:30
parent 1e132b97db
commit fd5b06c2d7
20 changed files with 810 additions and 179 deletions
+10 -1
View File
@@ -1,8 +1,17 @@
<template>
<product-pageAttended-course v-if="paidCourse" />
<product-pageCourse-detail v-else/>
<product-pageCourse-detail :slug="data.data" v-else/>
</template>
<script setup>
const route = useRoute();
const data = await useFetch("/api/productId", {
method: "POST",
body: {
id: route.params.product,
},
})
const paidCourse = useState('paidStatus', () => false)
</script>