From b61c4e13ff3f78a1483e89dd2802e2b6643d10ca Mon Sep 17 00:00:00 2001 From: yanyiwen Date: Wed, 14 May 2025 23:24:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=89=8D=E7=AB=AF=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=96=87=E6=8F=90=E4=BA=A4=E6=95=88=E6=9E=9C?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E6=A8=A1=E5=9E=8B=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=96=87=E8=AE=B0=E5=BF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/layout/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spug_web/src/layout/index.js b/spug_web/src/layout/index.js index 267a1af..b4d2c7a 100644 --- a/spug_web/src/layout/index.js +++ b/spug_web/src/layout/index.js @@ -53,6 +53,7 @@ export default function () { if (!value.trim()) return; const userMessage = { role: 'user', content: value }; setMessages((prev) => [...prev, userMessage]); // 添加用户消息 + setContext((prev) => [...prev, userMessage]); // 更新上下文 setLoading(true); try {