Skip to content

Commit 5dd4d87

Browse files
Kinplemelonysfscream
authored andcommitted
fix(client): handling data duplication when the list is too short
1 parent e294429 commit 5dd4d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Clients/components/MessageListDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const showPayload = ({ topic, payload }: MsgItem) => {
229229
}
230230
231231
const handleScroll = debounce(async (scrollArg: any) => {
232-
if (!isUndefined(scrollArg?.scrollTop)) {
232+
if (!isUndefined(scrollArg?.scrollTop) && scrollArg.scrollTop > 0) {
233233
scrollTop.value = scrollArg.scrollTop
234234
if (totalLength.value && isScrollToBottom.value) {
235235
getList()

0 commit comments

Comments
 (0)