Browse Source

Merge branch 'master' of https://git.nanodreamtech.com/wkw/wallet_app

wkw 1 week ago
parent
commit
382eaf8389
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/im/chat/index.vue

+ 5 - 0
src/views/im/chat/index.vue

@@ -130,6 +130,7 @@ import { useWalletStore } from "@/stores/modules/walletStore.js";
 import { Keyboard } from "@capacitor/keyboard";
 import { Capacitor } from "@capacitor/core";
 import { MSG_TYPE, MESSAGE_TYPE_USER } from "@/common/constant/msgType";
+ 
 
 // 路由 & store
 const router = useRouter();
@@ -159,6 +160,10 @@ const scrollToBottom = () => {
   });
 };
 
+watch(() => wsStore.messages.length, ()=>{
+  scrollToBottom();
+})
+
 // 平台判断
 const isMobile = Capacitor.getPlatform() !== "web";