mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-27 10:35:58 +08:00
优化实时语音对话组件,处理异常
This commit is contained in:
@@ -902,6 +902,10 @@ const showConversationDialog = ref(false)
|
||||
const conversationRef = ref(null)
|
||||
const dialogHeight = ref(window.innerHeight - 75);
|
||||
const realtimeChat = () => {
|
||||
if (!isLogin.value) {
|
||||
store.setShowLoginDialog(true)
|
||||
return
|
||||
}
|
||||
showConversationDialog.value = true;
|
||||
nextTick(() => {
|
||||
conversationRef.value.connect()
|
||||
|
||||
Reference in New Issue
Block a user