|
@@ -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";
|
|
|
|