update Page obj
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
import Time from "../../../utils/Time";
|
||||
import config from "../../../config/index"
|
||||
import Events from "../../../utils/Events";
|
||||
import { QueryPage } from "../../../types/Model";
|
||||
|
||||
export type Journal = {
|
||||
date: string;
|
||||
@ -24,12 +25,7 @@ export enum JournalItemType {
|
||||
}
|
||||
|
||||
interface JournalData {
|
||||
page: {
|
||||
index: number;
|
||||
size: number;
|
||||
type: string;
|
||||
orderMap?: object;
|
||||
}
|
||||
page: QueryPage;
|
||||
list: Journal[];
|
||||
dateFilterMin: number;
|
||||
dateFilterMax: number;
|
||||
@ -46,9 +42,8 @@ Page({
|
||||
page: {
|
||||
index: 0,
|
||||
size: 8,
|
||||
type: "NORMAL",
|
||||
orderMap: {
|
||||
createdAt: "DESC"
|
||||
likeMap: {
|
||||
type: "NORMAL"
|
||||
}
|
||||
},
|
||||
list: [],
|
||||
@ -71,9 +66,8 @@ Page({
|
||||
page: {
|
||||
index: 0,
|
||||
size: 8,
|
||||
type: "NORMAL",
|
||||
orderMap: {
|
||||
createdAt: "DESC"
|
||||
likeMap: {
|
||||
type: "NORMAL"
|
||||
}
|
||||
},
|
||||
list: [],
|
||||
@ -181,9 +175,8 @@ Page({
|
||||
page: {
|
||||
index: this.data.page.index + 1,
|
||||
size: 8,
|
||||
type: "NORMAL",
|
||||
orderMap: {
|
||||
createdAt: "DESC"
|
||||
likeMap: {
|
||||
type: "NORMAL"
|
||||
}
|
||||
},
|
||||
list: this.data.list.concat(result),
|
||||
|
||||
Reference in New Issue
Block a user