Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-23 11:08:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a63e7bb09ac06b33d927716bbd9e3c6aa6f22699
a63e7bb0
1 parent
9dbc94cb
fix(消息列表): 调整滚动加载阈值从100降至20
优化消息列表滚动加载体验,降低触发加载更多的阈值,使用户在滚动到更接近底部时即可触发加载
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/pages/messages/index.vue
src/pages/messages/index.vue
View file @
a63e7bb
...
...
@@ -38,7 +38,7 @@
<!-- 消息列表内容 -->
<scroll-view ref="scrollViewRef" class="conversation-list" :style="scrollStyle" :scroll-y="true"
@scrolltolower="loadMore" @scroll="scroll" :lower-threshold="
10
0" :enable-flex="false"
@scrolltolower="loadMore" @scroll="scroll" :lower-threshold="
2
0" :enable-flex="false"
:scroll-top="scrollTop">
<view v-for="conversation in filteredConversations" :key="conversation.id"
class="conversation-item mt-2 mb-4 border-b border-gray-100 pb-2"
...
...
@@ -209,7 +209,7 @@ const startPolling = () => {
if (pollingTimer.value) {
clearInterval(pollingTimer.value)
}
// 启动新的定时器
pollingTimer.value = setInterval(() => {
pollMessages()
...
...
Please
register
or
login
to post a comment