wujingjing
2024-11-06 c89d1d1fe4e820bc9d1a942467a3f1e017b40dac
src/components/chat/hooks/useScrollToBottom.ts
@@ -13,11 +13,9 @@
   const scrollToBottom = () => {
      nextTick(() => {
         if (!chatListDom.value) return;
         const parent = chatListDom.value.parentElement;
         if (!parent) return;
         if (parent.scrollHeight > parent.clientHeight) {
            parent.scrollTop = parent.scrollHeight - parent.clientHeight;
         if (chatListDom.value.scrollHeight > chatListDom.value.clientHeight) {
            chatListDom.value.scrollTop = chatListDom.value.scrollHeight - chatListDom.value.clientHeight;
         }
      });
   };