fix(chat): 调整聊天输入框禁用逻辑

- 在没有会话时允许用户输入
- 修复会话结束或正在回复/生成时输入框禁用的问题
This commit is contained in:
Lexcubia 2025-04-27 15:58:03 +08:00
parent 3ff35c104c
commit 009d16d5c3
1 changed files with 5 additions and 1 deletions

View File

@ -326,8 +326,12 @@ const formatTimestamp = (timestamp) => {
//
const isInputDisabled = computed(() => {
//
if (!chatStore.currentConversation) {
return false
}
// /
const status = chatStore.currentConversation?.conversationStatus
const status = chatStore.currentConversation.conversationStatus
return status !== 'active'
})