From b94695e1e972e2150bcd540df059fdae683b5ee9 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Tue, 14 Jan 2025 20:54:28 +0330 Subject: [PATCH] fixed composable path --- frontend/components/global/CategoryCard.vue | 28 +++++++++++-------- .../global/products/FilterProducts.vue | 12 +++++--- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/frontend/components/global/CategoryCard.vue b/frontend/components/global/CategoryCard.vue index 33be331..3e26b2c 100644 --- a/frontend/components/global/CategoryCard.vue +++ b/frontend/components/global/CategoryCard.vue @@ -1,17 +1,16 @@ \ No newline at end of file + diff --git a/frontend/components/global/products/FilterProducts.vue b/frontend/components/global/products/FilterProducts.vue index f59a8bf..fb97c60 100644 --- a/frontend/components/global/products/FilterProducts.vue +++ b/frontend/components/global/products/FilterProducts.vue @@ -7,7 +7,11 @@ import { PRODUCT_RANGE } from "~/constants"; const params = useUrlSearchParams("history"); -const sort_filter = ref(["جدیدترین ها", "گران ترین ها", "ارزان ترین ها"]); +const sort_filter = ref([ + { title: "جدیدترین ها", value: "newest" }, + { title: "گران ترین ها", value: "price" }, + { title: "ارزان ترین ها", value: "-price" }, +]); const options = [ { @@ -63,15 +67,15 @@ const resetFilters = () => {