From fc48cda1fbd6470cd807afc8530e19df1ed585e4 Mon Sep 17 00:00:00 2001 From: geniusay <969025903@qq.com> Date: Mon, 25 Aug 2025 01:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Chat/AIChatPage.vue | 8 ---- .../src/components/Chat/QuestionRenderer.vue | 40 +++++++++++-------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/prompto-lab-ui/src/components/Chat/AIChatPage.vue b/prompto-lab-ui/src/components/Chat/AIChatPage.vue index bd0b5b4..4056f79 100644 --- a/prompto-lab-ui/src/components/Chat/AIChatPage.vue +++ b/prompto-lab-ui/src/components/Chat/AIChatPage.vue @@ -306,15 +306,10 @@ const handleConnectionMessage = (response: any): boolean => { // 处理生成提示词消息 const handleGenPromptMessage = (response: any): boolean => { if (response.genPrompt) { - console.log('收到genPrompt数据:', response.genPrompt) - console.log('questionRendererRef.value:', questionRendererRef.value) - try { // 通过ref调用子组件的setPromptResult方法显示提示词结果 if (questionRendererRef.value && questionRendererRef.value.setPromptResult) { - console.log('调用子组件setPromptResult方法') questionRendererRef.value.setPromptResult(response.genPrompt) - console.log('setPromptResult调用完成') toast.success({ title: '提示词生成成功', @@ -323,9 +318,6 @@ const handleGenPromptMessage = (response: any): boolean => { }) } else { console.warn('QuestionRenderer组件引用不可用,无法显示提示词结果') - console.log('questionRendererRef.value存在:', !!questionRendererRef.value) - console.log('setPromptResult方法存在:', questionRendererRef.value && !!questionRendererRef.value.setPromptResult) - toast.error({ title: '显示失败', message: '无法显示提示词结果,请重试', diff --git a/prompto-lab-ui/src/components/Chat/QuestionRenderer.vue b/prompto-lab-ui/src/components/Chat/QuestionRenderer.vue index 8767519..d29dd93 100644 --- a/prompto-lab-ui/src/components/Chat/QuestionRenderer.vue +++ b/prompto-lab-ui/src/components/Chat/QuestionRenderer.vue @@ -218,9 +218,7 @@ -