Skip to content

Commit 734c489

Browse files
fix: The issue of prologue in the conversation log
1 parent 886c45f commit 734c489

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ui/src/components/ai-chat/component/prologue-content/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
:source="prologue"
1818
:send-message="sendMessage"
1919
reasoning_content=""
20+
:type="type"
2021
></MdRenderer>
2122
</el-card>
2223
</div>

ui/src/components/markdown/MdRenderer.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
<template v-for="(item, index) in md_view_list" :key="index">
66
<div
77
v-if="item.type === 'question'"
8-
@click="sendMessage ? sendMessage(item.content, 'new') : (content: string) => {}"
8+
@click="
9+
sendMessage && type !== 'log' ? sendMessage(item.content, 'new') : (content: string) => {}
10+
"
911
class="problem-button mt-4 mb-4 flex"
10-
:class="sendMessage ? 'cursor' : 'disabled'"
12+
:class="sendMessage && type !== 'log' ? 'cursor' : 'disabled'"
1113
>
1214
<el-icon class="mr-8" style="margin-top: 2px">
1315
<EditPen />
@@ -76,6 +78,7 @@ const props = withDefaults(
7678
chat_record_id?: string
7779
runtime_node_id?: string
7880
disabled?: boolean
81+
type?: 'log' | 'ai-chat' | 'debug-ai-chat'
7982
}>(),
8083
{
8184
source: '',

0 commit comments

Comments
 (0)