Fix: Memory-related bug fixes (#12226)

### What problem does this PR solve?

Fix: bugs fix
- table -> Table
- memory delete fail
- memory copywriting modified

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-12-26 12:24:05 +08:00
committed by GitHub
parent 52dbacc506
commit 894bf995bb
14 changed files with 270 additions and 58 deletions

View File

@ -39,7 +39,7 @@ export default function MemoryMessage() {
messages={data?.messages?.message_list ?? []}
pagination={pagination}
setPagination={setPagination}
total={data?.messages?.total ?? 0}
total={data?.messages?.total_count ?? 0}
// rowSelection={rowSelection}
// setRowSelection={setRowSelection}
// loading={loading}

View File

@ -14,7 +14,7 @@ export interface IMessageInfo {
}
export interface IMessageTableProps {
messages: { message_list: Array<IMessageInfo>; total: number };
messages: { message_list: Array<IMessageInfo>; total_count: number };
storage_type: string;
}

View File

@ -252,6 +252,7 @@ export function MemoryTable({
open={showDeleteDialog}
onOpenChange={setShowDeleteDialog}
content={{
title: t('memory.messages.forgetMessageTip'),
node: (
<ConfirmDeleteDialogNode
// avatar={{ avatar: selectedMessage.avatar, name: selectedMessage.name }}