mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-28 22:53:43 +08:00
fix bugs
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user