This commit is contained in:
Chuck1sn
2025-05-31 09:54:38 +08:00
parent 10bee7c656
commit 7fc38e325e
4 changed files with 7 additions and 7 deletions

View File

@@ -13,9 +13,9 @@ export const useSort = () => {
};
const sortBy = computed(() => {
return sortFields.value
.map((item) => `${item.field}:${item.order}`)
.join(",");
return sortFields.value.length
? sortFields.value.map((item) => `${item.field}:${item.order}`).join(",")
: undefined;
});
const handleSort = async (field: string) => {