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