From dc8f3a905ce77fad4bdb8c297c6546e0988a391d Mon Sep 17 00:00:00 2001 From: 15004070936 <1097449274@qq.com> Date: Fri, 17 Jul 2026 16:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/App.vue b/App.vue index 78fa9ed..dfce2dd 100644 --- a/App.vue +++ b/App.vue @@ -89,10 +89,15 @@ // url: `/pages/chatbox/chat` // }); // } - - uni.reLaunch({ - url: `/pages/chatbox/chat` - }); + let chat = { + type: 'GROUP', + targetId: extras.groupId, + showName: '加载中...', + headImage: '/static/image/kf.png', + }; + this.$store.dispatch('chatStore/openChat', chat); + let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat) + uni.reLaunch({url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}`}); } if(extras && extras.type && extras.type == 'privateMessage') { // 私信消息 @@ -108,8 +113,16 @@ // url: `/pages/chatbox/chat` // }); // } + let chat = { + type: 'PRIVATE', + targetId: extras.senderId, + showName: '加载中...', + headImage: '/static/image/kf.png', + }; + this.$store.dispatch('chatStore/openChat', chat); + let chatIdx = this.$store.getters['chatStore/findChatIdx'](chat) uni.reLaunch({ - url: `/pages/chatbox/chat` + url: `/pages/chatbox/chat-box?chatIdx=${chatIdx}` }); } })