Skip to content

Commit

Permalink
feat: 更新用户信息
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang committed Feb 10, 2023
1 parent 18a192d commit 9155ae8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified backend/.tmp/data.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2023-02-10T09:47:22.758Z"
"x-generation-date": "2023-02-10T13:18:04.525Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down
2 changes: 1 addition & 1 deletion frontend/composables/Articlelist/useScrollBottom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default (): boolean => {
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop
const clientHeight = document.documentElement.clientHeight
const scrollHeight = document.documentElement.scrollHeight
if (scrollTop + clientHeight >= scrollHeight)
if (scrollTop + clientHeight + 200 >= scrollHeight)// 还未到底部就先开始请求
return true
return false
}
2 changes: 1 addition & 1 deletion frontend/server/api/articles/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default defineEventHandler(async (event): Promise<IArticleItem[]> => {
]
}
${strategy[1]}
pagination: { page: ${pageNum || '1'}, pageSize: 20 }
pagination: { page: ${pageNum || '1'}, pageSize: 10 }
){
data{
id
Expand Down

0 comments on commit 9155ae8

Please sign in to comment.