Updated
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
// import
|
||||
|
||||
import useHomeData from "~/composables/api/home/useHomeData";
|
||||
import ProductsGrid from "~/components/global/ProductsGrid.vue";
|
||||
|
||||
// state
|
||||
|
||||
const { suspense } = useHomeData();
|
||||
const { data: homeData, suspense } = useHomeData();
|
||||
|
||||
// ssr
|
||||
|
||||
@@ -27,7 +28,8 @@ if (response.isError) {
|
||||
<Hero />
|
||||
<Preview />
|
||||
<ProductsShowcase />
|
||||
<ProductsSlider title="محصولات پرفروش" />
|
||||
<!-- <ProductsSlider title="محصولات پرفروش" />-->
|
||||
<ProductsGrid title="محصولات پرفروش" :products="[...homeData!.products,...homeData!.products]"/>
|
||||
<Categories />
|
||||
<Brands />
|
||||
<MostRecentComments />
|
||||
|
||||
Reference in New Issue
Block a user