Compare commits
No commits in common. "009d16d5c3184733fdcbce3bd19a5d910110c6c0" and "d56ee78dc354318e9fd8355f78a0901907fa9f8e" have entirely different histories.
009d16d5c3
...
d56ee78dc3
|
@ -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,12 +326,8 @@ 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