diff --git a/ui/src/views/home/components/ranking/RankingDrawer.vue b/ui/src/views/home/components/ranking/RankingDrawer.vue
index e80d3cf830e..982ed791112 100644
--- a/ui/src/views/home/components/ranking/RankingDrawer.vue
+++ b/ui/src/views/home/components/ranking/RankingDrawer.vue
@@ -92,7 +92,10 @@ onMounted(() => loadRanking())
- 导出
+
+
+ 导出
+
diff --git a/ui/src/views/workflow/tool/debug/ResultDrawer.vue b/ui/src/views/workflow/tool/debug/ResultDrawer.vue
index eeac3e7cfc5..4784a6a3759 100644
--- a/ui/src/views/workflow/tool/debug/ResultDrawer.vue
+++ b/ui/src/views/workflow/tool/debug/ResultDrawer.vue
@@ -25,8 +25,7 @@ interface ResumeParameters {
formData?: Record
position?: unknown
chunkId?: string
- chatRecordId?:string
-
+ chatRecordId?: string
}
const props = defineProps<{ toolId: string }>()
const running = defineModel('running', { default: false })
@@ -70,14 +69,10 @@ async function execute(extra: Record = {}) {
}
if (!response.body) throw new Error('未收到调试响应')
let streamError: unknown
- stream = new ConversationStream(
- response,
- receiveChunk,
- (error?: unknown) => {
- if (error) streamError = error
- running.value = false
- },
- )
+ stream = new ConversationStream(response, receiveChunk, (error?: unknown) => {
+ if (error) streamError = error
+ running.value = false
+ })
await stream.start()
if (!visible.value) return
if (streamError) throw streamError
@@ -90,14 +85,13 @@ async function execute(extra: Record = {}) {
}
} finally {
stream = undefined
-
}
}
// 表单节点沿用同一条执行记录续跑,复用现有回复组件的 sendMessage 协议。
provide('sendMessage', (options: ResumeParameters) => {
if (running.value || !visible.value) return
- return execute({ 'form_data':options.formData,'chat_record_id':options.chatRecordId, 'chunk_id':options.chunkId,position: options.position })
+ return execute({ form_data: options.formData, chat_record_id: options.chatRecordId, chunk_id: options.chunkId, position: options.position })
})
function open(parameters: Record) {
@@ -136,21 +130,29 @@ defineExpose({ open, close })
回复内容
-
+
回答中...
输出参数
-
- {{ output }}
+
+ 输出
+
+ {{ output }}
+
-
+