This commit is contained in:
marzban-dev
2025-01-28 22:03:08 +03:30
parent ef5ca11db1
commit 68f97c0234
+4 -2
View File
@@ -9,7 +9,9 @@ const id = route.params.id as string | undefined;
const { suspense } = useGetProduct(id); const { suspense } = useGetProduct(id);
onServerPrefetch(async () => { // ssr
await useAsyncData(async () => {
const response = await suspense(); const response = await suspense();
if (response.isError) { if (response.isError) {
@@ -23,7 +25,7 @@ onServerPrefetch(async () => {
</script> </script>
<template> <template>
<div class="w-full flex flex-col"> <div class="w-full flex flex-col gap-20">
<ProductHero /> <ProductHero />
<ProductVideo /> <ProductVideo />
<ProductComments /> <ProductComments />