fix: 结果调试下拉框关闭问题

This commit is contained in:
wangdan-fit2cloud 2024-09-13 18:41:32 +08:00
parent 9bb226da96
commit 8145a54233
2 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div ref="aiChatRef" class="ai-chat" :class="log ? 'chart-log' : ''"> <div ref="aiChatRef" class="ai-chat" :class="log ? 'chart-log' : ''">
<div <div
v-if="inputFieldList.length > 0 || apiInputFieldList.length > 0" v-if="inputFieldList.length > 0 || (debug && apiInputFieldList.length > 0)"
class="mb-16" class="mb-16"
style="padding: 0 24px" style="padding: 0 24px"
> >
@ -176,7 +176,7 @@
/> />
<div class="operate flex align-center"> <div class="operate flex align-center">
<span v-if="props.data.stt_model_enable"> <span v-if="props.data.stt_model_enable" class="flex align-center">
<el-button text v-if="mediaRecorderStatus" @click="startRecording"> <el-button text v-if="mediaRecorderStatus" @click="startRecording">
<el-icon> <el-icon>
<Microphone /> <Microphone />

View File

@ -240,9 +240,12 @@ const clickShowDebug = () => {
} }
}) })
} }
function clickoutsideDebug() { function clickoutsideDebug(e: any) {
const Elm = e?.target?.className?.includes?.('el-select')
if (!Elm) {
showDebug.value = false showDebug.value = false
} }
}
function clickNodes(item: any, data?: any) { function clickNodes(item: any, data?: any) {
if (data) { if (data) {