fix event list sort
This commit is contained in:
@@ -130,7 +130,11 @@ const isLoading = ref(false);
|
||||
const isNoMore = ref(false);
|
||||
const page = reactive<Page<EventItem>>({
|
||||
index: 0,
|
||||
size: 15
|
||||
size: 15,
|
||||
orderMap: {
|
||||
sort: "ASC",
|
||||
createdAt: "ASC"
|
||||
}
|
||||
});
|
||||
const pageResult = reactive<PageResult<EventItem>>({
|
||||
total: 0,
|
||||
|
||||
@@ -131,7 +131,11 @@ async function loadData(): Promise<void> {
|
||||
try {
|
||||
const result = await EventAPI.list({
|
||||
index: 0,
|
||||
size: 100
|
||||
size: 100,
|
||||
orderMap: {
|
||||
sort: "ASC",
|
||||
createdAt: "ASC"
|
||||
}
|
||||
});
|
||||
eventList.value = result.list || [];
|
||||
sortDirty.value = false;
|
||||
|
||||
Reference in New Issue
Block a user