fix(chat): 调整聊天输入框禁用逻辑
- 在没有会话时允许用户输入 - 修复会话结束或正在回复/生成时输入框禁用的问题
This commit is contained in:
parent
3ff35c104c
commit
009d16d5c3
|
@ -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'
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue