fix journal list sort

This commit is contained in:
Timi
2025-12-10 15:28:49 +08:00
parent 432cc85663
commit d07fa0ef88
2 changed files with 30 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import Time from "../../../utils/Time";
import config from "../../../config/index"
import Events from "../../../utils/Events";
import { JournalPage, JournalPageType } from "../../../types/Journal";
import { OrderType } from "../../../types/Model";
export type Journal = {
date: string;
@ -45,6 +46,9 @@ Page({
type: JournalPageType.NORMAL,
likeMap: {
type: "NORMAL"
},
orderMap: {
createdAt: OrderType.DESC
}
},
list: [],
@ -70,6 +74,9 @@ Page({
type: JournalPageType.NORMAL,
equalsExample: {
type: "NORMAL"
},
orderMap: {
createdAt: OrderType.DESC
}
},
list: [],
@ -174,6 +181,9 @@ Page({
type: JournalPageType.NORMAL,
equalsExample: {
type: "NORMAL"
},
orderMap: {
createdAt: OrderType.DESC
}
},
list: this.data.list.concat(result),