35 lines
618 B
Vue
35 lines
618 B
Vue
<template>
|
|
<div>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</div>
|
|
</template>
|
|
|
|
<!-- <script setup>
|
|
const props = defineProps({
|
|
category: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
id_category: {
|
|
type: Number,
|
|
required: true
|
|
}
|
|
}) -->
|
|
|
|
// const templates = ref([])
|
|
|
|
// const fetchTemplates = async () => {
|
|
// try {
|
|
// templates.value = await $fetch(`http://localhost:8000/api/templates/category/${props.id_category}`)
|
|
// } catch (error) {
|
|
// console.error('Gagal ambil template:', error)
|
|
// }
|
|
// }
|
|
|
|
// onMounted(() => {
|
|
// fetchTemplates()
|
|
// })
|
|
|
|
// defineEmits(['back']); |