diff --git a/app/components/home.tsx b/app/components/home.tsx index 27f9ab9..931ebe6 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -311,8 +311,8 @@ function exportMessages(messages: Message[], topic: string) { title: "导出聊天记录为 Markdown", children:
{mdText}
, actions: [ - } bordered text="全部复制" onClick={() => copyToClipboard(mdText)} />, - } bordered text="下载文件" onClick={() => downloadAs(mdText, filename)} /> + } bordered text="全部复制" onClick={() => copyToClipboard(mdText)} />, + } bordered text="下载文件" onClick={() => downloadAs(mdText, filename)} /> ] }) } diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx index 8418b90..34604d4 100644 --- a/app/components/ui-lib.tsx +++ b/app/components/ui-lib.tsx @@ -71,7 +71,7 @@ export function Modal(props: ModalProps) {
- {props.actions?.map(action =>
{action}
)} + {props.actions?.map((action, i) =>
{action}
)}