File tree 4 files changed +3
-3
lines changed
src/extensions/documentation/documentation/1.0.0
4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
"name": "Apache 2.0",
15
15
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
16
16
},
17
- "x-generation-date": "2023-02-10T09:47:22.758Z "
17
+ "x-generation-date": "2023-02-10T13:18:04.525Z "
18
18
},
19
19
"x-strapi-config": {
20
20
"path": "/documentation",
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export default (): boolean => {
2
2
const scrollTop = document . documentElement . scrollTop || document . body . scrollTop
3
3
const clientHeight = document . documentElement . clientHeight
4
4
const scrollHeight = document . documentElement . scrollHeight
5
- if ( scrollTop + clientHeight >= scrollHeight )
5
+ if ( scrollTop + clientHeight + 200 >= scrollHeight ) // 还未到底部就先开始请求
6
6
return true
7
7
return false
8
8
}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default defineEventHandler(async (event): Promise<IArticleItem[]> => {
66
66
]
67
67
}
68
68
${ strategy [ 1 ] }
69
- pagination: { page: ${ pageNum || '1' } , pageSize: 20 }
69
+ pagination: { page: ${ pageNum || '1' } , pageSize: 10 }
70
70
){
71
71
data{
72
72
id
You can’t perform that action at this time.
0 commit comments