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 = () => {