This commit is contained in:
mohadese namavar
2024-06-16 00:22:14 +04:30
commit ec84dfd222
322 changed files with 77942 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<template>
<NuxtLayout :name="device" :config="config">
<main class="compare">
<CompareProductList />
<CompareSpecList />
</main>
</NuxtLayout>
</template>
<script setup>
import init from '../../initialize/compare'
const { options } = init()
const config = reactive({
mobile: { header: { back: true, options } },
})
const { device } = inject('service')
const { meta, params } = useRoute()
const { status, data, error } = await useFetch(`/api/products/comparison/${params.ids}`)
if (status.value == 'success') {
provide('data', data.value)
}
else throw createError(error.value)
</script>
<style lang="scss">
.compare {
@apply flex flex-col;
}
</style>