fix(HistoryButton):条件渲染历史按钮

This commit is contained in:
肖应宇 2026-04-14 12:50:48 +08:00
parent 7ddc3a1742
commit 369f3af384
1 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ export function InputBox({
mode: "flash" | "thinking" | "pro" | "ultra" | undefined;
};
extraHeader?: React.ReactNode;
showWelcomeStyle?: boolean;
showWelcomeStyle: boolean;
hasSubmitted?: boolean;
initialValue?: string;
onContextChange?: (
@ -376,11 +376,11 @@ export function InputBox({
/>
</PromptInputActionMenuContent>
</PromptInputActionMenu> */}
<HistoryButton
{showWelcomeStyle && <HistoryButton
className="px-2!"
router={router}
threadId={threadIdFromProps}
/>
/>}
<AddAttachmentsButton className="px-2!" />
<IframeSkillDialogButton
className="px-2!"