Browse Source

Merge branch 'dongqian/feature-20251022181325-deepmate简版' into milestone-20251031-简版功能开发

lihuilin/feature-20251024095243-我的
dongqian 3 weeks ago
parent
commit
1d83b16936
  1. 13
      pages/deepMate/deepMate.vue

13
pages/deepMate/deepMate.vue

@ -889,7 +889,17 @@ const scrollToBottom = () => {
});
};
const scrollToTop = () => {
// scroll-view
if (messages.value.length > 0) {
chatScrollTop.value = 0;
return;
}
//
try {
uni.pageScrollTo({ scrollTop: 0, duration: 200 });
} catch (e) {
//
}
};
//
const shouldAutoScroll = ref(true);
@ -903,6 +913,9 @@ const onChatScroll = (e) => {
const delta = st - lastScrollTop.value;
lastScrollTop.value = st;
//
chatScrollTop.value = st;
if (delta < 0) {
shouldAutoScroll.value = false;
return;

Loading…
Cancel
Save