Fix filters bug

This commit is contained in:
marzban-dev
2026-05-05 20:57:15 +03:30
parent f9a6fb2e64
commit 908535da35
2 changed files with 8 additions and 8 deletions
@@ -27,7 +27,7 @@ const useGetAllOrders = () => {
const { data } = await axios.get<GetAllOrdersResponse>(API_ENDPOINTS.orders.get_all, {
params: {
sort: sort.value ?? "created_at",
filter: status.value,
status: status.value,
offset: Number(page.value) * 10 - 10,
limit: 10,
},
@@ -24,19 +24,19 @@ const tableHeads = ref(["شماره سفارش", "تاریخ ثبت", "تعدا
const sortFilters = ref([
{
title: "جدید ترین",
value: "created_at",
},
{
title: "قدیمی ترین",
value: "-created_at",
},
{
title: "قدیمی ترین",
value: "created_at",
},
{
title: "گران ترین",
value: "final_price",
value: "-final_price",
},
{
title: "ارزان ترین",
value: "-final_price",
value: "final_price",
},
]);
@@ -63,7 +63,7 @@ const statusFilters = ref([
},
{
title: "مرجوع شده",
value: "REFUND",
value: "REFUNDED",
},
]);