Skip to content

Commit a33560b

Browse files
committed
fix: show/hide autoplay and autosend checkbox
--bug=1051707 --user=刘瑞斌 【应用】-未开启语音输入和语音播放时,不显示自动发送和自动播放 https://www.tapd.cn/57709429/s/1648662
1 parent 27a8fac commit a33560b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/src/views/application/ApplicationSetting.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
</span>
292292

293293
<div class="flex">
294-
<el-checkbox v-model="applicationForm.stt_autosend">{{
294+
<el-checkbox v-if="applicationForm.stt_model_enable" v-model="applicationForm.stt_autosend">{{
295295
$t('views.application.applicationForm.form.voiceInput.autoSend')
296296
}}</el-checkbox>
297297
<el-switch
@@ -331,7 +331,7 @@
331331
>
332332
</span>
333333
<div class="flex">
334-
<el-checkbox v-model="applicationForm.tts_autoplay">{{
334+
<el-checkbox v-if="applicationForm.tts_model_enable" v-model="applicationForm.tts_autoplay">{{
335335
$t('views.application.applicationForm.form.voicePlay.autoPlay')
336336
}}</el-checkbox>
337337
<el-switch

ui/src/workflow/nodes/base-node/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
$t('views.application.applicationForm.form.voiceInput.label')
9191
}}</span>
9292
<div class="flex">
93-
<el-checkbox v-model="form_data.stt_autosend">{{
93+
<el-checkbox v-if="form_data.stt_model_enable" v-model="form_data.stt_autosend">{{
9494
$t('views.application.applicationForm.form.voiceInput.autoSend')
9595
}}</el-checkbox>
9696
<el-switch
@@ -117,7 +117,7 @@
117117
$t('views.application.applicationForm.form.voicePlay.label')
118118
}}</span>
119119
<div class="flex">
120-
<el-checkbox v-model="form_data.tts_autoplay">{{
120+
<el-checkbox v-if="form_data.tts_model_enable" v-model="form_data.tts_autoplay">{{
121121
$t('views.application.applicationForm.form.voicePlay.autoPlay')
122122
}}</el-checkbox>
123123
<el-switch

0 commit comments

Comments
 (0)