From c4efe14e94f138e051945ce22711c6a818994f4d Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 24 Sep 2026 17:26:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E8=B4=A6=E5=8F=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=AF=95=E7=82=B9=EF=BC=8C=E6=93=8D=E4=BD=9C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E8=BF=81=E5=85=A5=E5=8D=A1=E7=89=87=E5=8F=B3=E4=B8=8A?= =?UTF-8?q?=E8=A7=92=EF=BC=88=E5=AF=B9=E9=BD=90=20ant-design-pro=20TableLi?= =?UTF-8?q?st=20=E5=B8=83=E5=B1=80=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paseo.json | 1 + .../accounts/AccountManagementList.tsx | 29 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 paseo.json diff --git a/paseo.json b/paseo.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/paseo.json @@ -0,0 +1 @@ +{} diff --git a/web/src/components/accounts/AccountManagementList.tsx b/web/src/components/accounts/AccountManagementList.tsx index 301b3e8..d19fc94 100644 --- a/web/src/components/accounts/AccountManagementList.tsx +++ b/web/src/components/accounts/AccountManagementList.tsx @@ -20,7 +20,6 @@ import { PlusOutlined, CloudUploadOutlined } from '@ant-design/icons'; import type { ColumnsType } from 'antd/es/table'; import { getList, remove, creatorAction, creatorUpdate } from '@/services/api'; import { conflictMessage, isCollectionAccount, platformLabel } from '@/utils/helpers'; -import { usePageActions } from '@/components/PageActions'; // 语义对齐 web.archived/src/features/accounts/AccountsPage.jsx 的 AccountManagementList(mode: owned/monitoring)。 // 仅用 antd 默认组件:Table/Tag/Modal/Popconfirm/Select(tags)。 @@ -225,25 +224,25 @@ export default function AccountManagementList({ mode }: { mode: 'owned' | 'monit }, ]; - usePageActions( - isMonitoring ? ( - - ) : ( - - ), - [isMonitoring], + const primaryAction = isMonitoring ? ( + + ) : ( + ); return ( {contextHolder} - - 共 {rows.length} 个{isMonitoring ? '监控' : '自有'}账号 - + + + 共 {rows.length} 个{isMonitoring ? '监控' : '自有'}账号 + + {primaryAction} + {error ? ( 重试} /> ) : null}