|
@@ -24,8 +24,8 @@ export class MemoHistoryPage implements OnInit {
|
|
|
|
|
|
const MemoHistory = Parse.Object.extend('memo_history');
|
|
|
const query = new Parse.Query(MemoHistory);
|
|
|
- query.equalTo('username', currentUser.getUsername()); // Ensure only the current user's memos are fetched
|
|
|
- query.descending('memoId'); // Sort by memoId descending to get the latest memos first
|
|
|
+ query.equalTo('username', currentUser.getUsername()); // 确保只获取当前用户的备忘录
|
|
|
+ query.descending('memoId'); // 按 memoId 降序排列,最新的在最上面
|
|
|
|
|
|
try {
|
|
|
const results = await query.find();
|