From 82b138280b133ca4aca58b015d08b19646c1b276 Mon Sep 17 00:00:00 2001 From: Peanut Date: Tue, 21 Jul 2026 23:47:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20console.log=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=EF=BC=88?= =?UTF-8?q?firstQuery=20=E6=96=87=E6=9C=AC=E3=80=81payload=20=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E5=86=85=E5=AE=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-program/src/pages/main/ScriptView.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mini-program/src/pages/main/ScriptView.vue b/mini-program/src/pages/main/ScriptView.vue index 0eac66d..35c35ee 100644 --- a/mini-program/src/pages/main/ScriptView.vue +++ b/mini-program/src/pages/main/ScriptView.vue @@ -1648,7 +1648,7 @@ const runGeneration = async ({ prompt, displayText, source = 'text', saveTheme } clarificationCard.value = null novelSessionId.value = '' firstQuery.value = text // 记住首次心愿,用于后续 followup 保存剧本 - console.log('[ScriptView] 设置 firstQuery:', { text, length: text.length }) + console.log('[ScriptView] 设置 firstQuery:', { length: text.length }) pendingNextResponse.value = true // 标记等待下一个 assistant 响应 resumeableSessionId.value = '' outlineFeedback.value = '' @@ -1693,7 +1693,7 @@ const handleShortNovelEvent = (event) => { const { type, session_id, payload = {} } = event const timestamp = Date.now() - console.log('[ScriptView] 收到事件:', { type, session_id, timestamp, payload }) + console.log('[ScriptView] 收到事件:', { type, session_id, timestamp }) if (session_id) novelSessionId.value = session_id @@ -1783,7 +1783,6 @@ const submitClarification = (answer) => { answeringClarification.value = true console.log('[ScriptView] submitClarification:', { sessionId: novelSessionId.value, - originalQuery: firstQuery.value, originalQueryLength: firstQuery.value?.length }) currentStreamTask.value = followupStream({ @@ -1803,7 +1802,6 @@ const confirmOutline = (msg) => { addResultMessage({ role: 'user', kind: 'text', content: '确认大纲' }) console.log('[ScriptView] confirmOutline:', { sessionId: novelSessionId.value, - originalQuery: firstQuery.value, originalQueryLength: firstQuery.value?.length }) currentStreamTask.value = followupStream({ @@ -1827,7 +1825,6 @@ const modifyOutline = (msg) => { addResultMessage({ role: 'user', kind: 'text', content: feedback }) console.log('[ScriptView] modifyOutline:', { sessionId: novelSessionId.value, - originalQuery: firstQuery.value, originalQueryLength: firstQuery.value?.length }) currentStreamTask.value = followupStream({ @@ -1856,7 +1853,6 @@ const resumeSession = () => { try { console.log('[ScriptView] resumeSession:', { sessionId: novelSessionId.value, - originalQuery: firstQuery.value, originalQueryLength: firstQuery.value?.length }) currentStreamTask.value = followupStream({