Skip to content

Commit

Permalink
fix 子分类下的书签未按照时间逆序
Browse files Browse the repository at this point in the history
  • Loading branch information
glennliao committed Jul 10, 2023
1 parent 5fba63e commit a44b67f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/views/bookmark/hook/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function loadBookmarkList () {
'Bookmark[]': {
cateId: curCate.value[curCate.value.length - 1],
count: 0,
'@order': 'id desc',
'@order': 'createdAt desc',
}
}).then(data => {
bookmarkList.value = data['Bookmark[]']
Expand All @@ -59,7 +59,8 @@ function loadSubCateBookmark(){
apiJson.get({
'Bookmark[]': {
count: 0,
cateId:curSubCateId.value
cateId:curSubCateId.value,
'@order': 'createdAt desc',
}
}).then(data => {
curSubCateBookmark.value = data['Bookmark[]']
Expand Down

0 comments on commit a44b67f

Please sign in to comment.