Compare commits
2 Commits
d56ee78dc3
...
009d16d5c3
Author | SHA1 | Date |
---|---|---|
|
009d16d5c3 | |
|
3ff35c104c |
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="voice-input-settings">
|
<div class="voice-input-settings">
|
||||||
<h4>语音输入设置</h4>
|
<h4>语音设置</h4>
|
||||||
<div class="settings-item">
|
<div class="settings-item">
|
||||||
<span class="settings-label">语音转文字后直接发送</span>
|
<span class="settings-label">语音转文字后直接发送</span>
|
||||||
<el-switch
|
<el-switch
|
||||||
|
|
|
@ -326,8 +326,12 @@ const formatTimestamp = (timestamp) => {
|
||||||
|
|
||||||
// 计算属性:判断输入框是否禁用
|
// 计算属性:判断输入框是否禁用
|
||||||
const isInputDisabled = computed(() => {
|
const isInputDisabled = computed(() => {
|
||||||
|
// 没有会话时允许输入
|
||||||
|
if (!chatStore.currentConversation) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
// 会话结束 或 正在回复/生成时禁用输入
|
// 会话结束 或 正在回复/生成时禁用输入
|
||||||
const status = chatStore.currentConversation?.conversationStatus
|
const status = chatStore.currentConversation.conversationStatus
|
||||||
return status !== 'active'
|
return status !== 'active'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue