chore: 清除多余log,修复部署脚本

This commit is contained in:
肖应宇 2026-04-02 11:15:47 +08:00
parent f47d07d526
commit d0c9255c20
3 changed files with 8 additions and 6 deletions

View File

@ -86,7 +86,7 @@ export default function ChatPage() {
// } // }
return searchParams.get("isnew")?.trim().toLowerCase() === "true"; return searchParams.get("isnew")?.trim().toLowerCase() === "true";
}, [isNewThread, searchParams]); }, [isNewThread, searchParams]);
console.log(createNewSession, "createNewSession"); // console.log(createNewSession, "createNewSession");
const shouldStayOnNewRoute = useMemo( const shouldStayOnNewRoute = useMemo(
() => searchParams.get("isnew")?.trim().toLowerCase() === "true", () => searchParams.get("isnew")?.trim().toLowerCase() === "true",
[searchParams], [searchParams],

View File

@ -1096,8 +1096,10 @@ export const PromptInputSubmit = ({
Icon = <SquareIcon className="size-4" />; Icon = <SquareIcon className="size-4" />;
text = "停止"; text = "停止";
} else if (status === "error") { } else if (status === "error") {
// 没有报错状态先用error状态代替
Icon = <XIcon className="size-4" />; Icon = <XIcon className="size-4" />;
text = "错误"; // MARK: 这里后端没有返回错误信息,先写死一个文本
text = "发送";
} }
return ( return (

View File

@ -55,14 +55,14 @@ rsync -azP --delete --info=progress2 \
"$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/" "$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/"
echo "==> Uploading static assets..." echo "==> Uploading static assets..."
rsync -azP --delete --info=progress2 \ rsync -azP --info=progress2 \
frontend/.next/static/ \ frontend/.next/static/ \
"$REMOTE:$REMOTE_APP_DIR/frontend/.next/static/" "$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/.next/static/"
echo "==> Uploading public assets..." echo "==> Uploading public assets..."
rsync -azP --delete --info=progress2 \ rsync -azP --info=progress2 \
frontend/public/ \ frontend/public/ \
"$REMOTE:$REMOTE_APP_DIR/frontend/public/" "$REMOTE:$REMOTE_APP_DIR/frontend/.next/standalone/public/"
if [ "$RESTART" = "--restart" ]; then if [ "$RESTART" = "--restart" ]; then
echo "==> Restarting DeerFlow on remote host..." echo "==> Restarting DeerFlow on remote host..."