Skip to content

Commit 6046a61

Browse files
Merge remote-tracking branch 'upstream/v2' into upgrade_jsonpath-ng_to_1.8.0
2 parents 76324bf + 78f1083 commit 6046a61

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
</h5>
6363
<div class="p-8-12 border-t-dashed lighter">
6464
<div v-for="(msg, index) in AiResponse" :key="index">
65-
<span>{{ msg.content }}</span>
65+
<MdRenderer v-if="msg.content" :source="msg.content"></MdRenderer>
66+
<template v-else> -</template>
6667
</div>
6768
</div>
6869
</div>
@@ -84,6 +85,7 @@ import { ref, computed } from 'vue'
8485
import ExecutionDetailCard from '@/components/execution-detail-card/index.vue'
8586
import { arraySort } from '@/utils/array'
8687
import { isWorkFlow } from '@/utils/application'
88+
import MdRenderer from '@/components/markdown/MdRenderer.vue'
8789
8890
const props = defineProps<{
8991
detail?: any[]
@@ -162,4 +164,10 @@ const AiResponse = computed(() => {
162164
return messages.slice(messages.length - 1, messages.length)
163165
})
164166
</script>
165-
<style lang="scss" scoped></style>
167+
<style lang="scss" scoped>
168+
.execution-details {
169+
:deep(.md-editor-previewOnly) {
170+
background: none !important;
171+
}
172+
}
173+
</style>

0 commit comments

Comments
 (0)