优化好友和群聊新建会话逻辑。

This commit is contained in:
2026-08-05 17:56:12 +08:00
parent 941070a2ee
commit b4e69802c0
3 changed files with 12 additions and 5 deletions

View File

@@ -269,7 +269,12 @@
// 新建会话
const openNewChatModal = () => {
console.log("点击了新建会话");
// 好友会话(1)或群聊(2)时,跳转到通讯录页面发起新聊天
if (chatType.value === 1 || chatType.value === 2) {
goContactPages()
return
}
// AI 聊天(0)时,弹出新建会话弹窗
emit('update:showNewChatModal', true)
}