From d0c9255c20708537df5b6627b259a95022779771 Mon Sep 17 00:00:00 2001
From: MT-Mint <798521692@qq.com>
Date: Thu, 2 Apr 2026 11:15:47 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B8=85=E9=99=A4=E5=A4=9A=E4=BD=99lo?=
=?UTF-8?q?g=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=83=A8=E7=BD=B2=E8=84=9A?=
=?UTF-8?q?=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/app/workspace/chats/[thread_id]/page.tsx | 2 +-
frontend/src/components/ai-elements/prompt-input.tsx | 4 +++-
scripts/deploy-frontend-standalone.sh | 8 ++++----
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx
index e62d3fa8..332207e4 100644
--- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx
+++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx
@@ -86,7 +86,7 @@ export default function ChatPage() {
// }
return searchParams.get("isnew")?.trim().toLowerCase() === "true";
}, [isNewThread, searchParams]);
- console.log(createNewSession, "createNewSession");
+ // console.log(createNewSession, "createNewSession");
const shouldStayOnNewRoute = useMemo(
() => searchParams.get("isnew")?.trim().toLowerCase() === "true",
[searchParams],
diff --git a/frontend/src/components/ai-elements/prompt-input.tsx b/frontend/src/components/ai-elements/prompt-input.tsx
index 9f8b02d2..4a26de18 100644
--- a/frontend/src/components/ai-elements/prompt-input.tsx
+++ b/frontend/src/components/ai-elements/prompt-input.tsx
@@ -1096,8 +1096,10 @@ export const PromptInputSubmit = ({
Icon = ;
text = "停止";
} else if (status === "error") {
+ // 没有报错状态,先用error状态代替
Icon = ;
- text = "错误";
+ // MARK: 这里后端没有返回错误信息,先写死一个文本
+ text = "发送";
}
return (
diff --git a/scripts/deploy-frontend-standalone.sh b/scripts/deploy-frontend-standalone.sh
index 1890439e..fd508496 100755
--- a/scripts/deploy-frontend-standalone.sh
+++ b/scripts/deploy-frontend-standalone.sh
@@ -55,14 +55,14 @@ rsync -azP --delete --info=progress2 \
"$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/"
echo "==> Uploading static assets..."
-rsync -azP --delete --info=progress2 \
+rsync -azP --info=progress2 \
frontend/.next/static/ \
- "$REMOTE:$REMOTE_APP_DIR/frontend/.next/static/"
+ "$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/.next/static/"
echo "==> Uploading public assets..."
-rsync -azP --delete --info=progress2 \
+rsync -azP --info=progress2 \
frontend/public/ \
- "$REMOTE:$REMOTE_APP_DIR/frontend/public/"
+ "$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/public/"
if [ "$RESTART" = "--restart" ]; then
echo "==> Restarting DeerFlow on remote host..."