Skip to content

Commit 11b4172

Browse files
wangdan-fit2cloudliuruibin
authored andcommitted
fix: The AI answer in the trigger execution record shows an error
1 parent 65f0bf6 commit 11b4172

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</h5>
6363
<div class="p-8-12 border-t-dashed lighter">
6464
<div v-for="(msg, index) in AiResponse" :key="index">
65-
<MdRenderer v-if="msg.content" :source="msg.content"></MdRenderer>
65+
<MdRenderer v-if="msg.content" :source="msg.content" noImgZoomIn></MdRenderer>
6666
<template v-else> -</template>
6767
</div>
6868
</div>

ui/src/components/execution-detail-card/index.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,8 @@
237237
{{ $t('chat.executionDetails.answer') }}
238238
</h5>
239239
<div class="p-8-12 border-t-dashed lighter">
240-
<MdPreview
241-
v-if="data.answer"
242-
ref="editorRef"
243-
editorId="preview-only"
244-
:modelValue="data.answer"
245-
style="background: none"
246-
noImgZoomIn
247-
/>
240+
<MdRenderer v-if="data.answer" :source="data.answer" noImgZoomIn></MdRenderer>
241+
248242
<template v-else> -</template>
249243
</div>
250244
</div>
@@ -1299,7 +1293,7 @@ import { WorkflowType } from '@/enums/application'
12991293
import { getImgUrl } from '@/utils/common'
13001294
import { arraySort } from '@/utils/array'
13011295
import ExecutionDetailCard from '@/components/execution-detail-card/index.vue'
1302-
1296+
import MdRenderer from '@/components/markdown/MdRenderer.vue'
13031297
import { t } from '@/locales'
13041298
13051299
const props = defineProps({

0 commit comments

Comments
 (0)