fix infinite series sort

This commit is contained in:
Gauthier Roebroeck 2026-03-25 14:37:27 +08:00
parent e6b70d28af
commit 2f7f7ea474
2 changed files with 4 additions and 2 deletions

View file

@ -451,7 +451,9 @@ const {
body: apiQuery.value,
params: {
query: {
...pageParam,
page: pageParam.page,
size: pageParam.size,
sort: sortActive.value.map((it) => sortToString(it)),
},
},
})

View file

@ -15,7 +15,7 @@ function vSortItemToSort(sortItem: VSortItem): Sort {
}
}
function sortToString(sortItem: Sort | string): string {
export function sortToString(sortItem: Sort | string): string {
if (typeof sortItem === 'string') return sortItem
let sort = sortItem.key