@@ -253,6 +253,6 @@ export default function Page() {
尚未产生执行尝试。
)}
-
+
);
}
diff --git a/web/src/pages/tasks/index.tsx b/web/src/pages/tasks/index.tsx
index 3e8f94f..55a89f7 100644
--- a/web/src/pages/tasks/index.tsx
+++ b/web/src/pages/tasks/index.tsx
@@ -1,7 +1,7 @@
// 任务中心列表:语义对齐 web.archived TasksPage.jsx 的 TaskList。
import { useCallback, useEffect, useState } from 'react';
import { history } from '@umijs/max';
-import { Alert, Button, Input, Select, Space, Table, Tag, Typography } from 'antd';
+import { Alert, Button, Card, Input, Select, Space, Table, Tag, Typography } from 'antd';
import type { ColumnsType } from 'antd/es/table';
import { getList } from '@/services/api';
import { dateTime } from '@/utils/helpers';
@@ -110,7 +110,7 @@ export default function Page() {
];
return (
-
+
逐条处理暂停、版本变化与未知执行结果;不会自动重试或更换出口
-
+
);
}
diff --git a/web/src/utils/metadata.ts b/web/src/utils/metadata.tsx
similarity index 77%
rename from web/src/utils/metadata.ts
rename to web/src/utils/metadata.tsx
index 973a7f9..59cb681 100644
--- a/web/src/utils/metadata.ts
+++ b/web/src/utils/metadata.tsx
@@ -1,4 +1,16 @@
import type { MenuDataItem } from '@ant-design/pro-components';
+import {
+ CloudDownloadOutlined,
+ UserOutlined,
+ EyeOutlined,
+ LineChartOutlined,
+ CommentOutlined,
+ SettingOutlined,
+ ProfileOutlined,
+ LaptopOutlined,
+ ClusterOutlined,
+ GatewayOutlined,
+} from '@ant-design/icons';
// 页头标题/副标题规则:语义对齐 web.archived/src/app/Layout.jsx 的 pageMetadataRules。
const rules: Array<{ test: (path: string) => boolean; title: string; subtitle: string }> = [
@@ -25,26 +37,27 @@ const rules: Array<{ test: (path: string) => boolean; title: string; subtitle: s
{ test: (p) => p.startsWith('/gateways/'), title: '网关详情', subtitle: '查看网关连接信息和运行状态。' },
];
-// 菜单结构:与 web.archived/src/app/Layout.jsx 完全一致(运营 / 资源 两组)。
+// 菜单结构:与 web.archived/src/app/Layout.jsx 完全一致(运营 / 资源 两组);
+// icon 选用 antd 图标库里语义常见、用户一眼可识别的隐喻。
export const menu: MenuDataItem[] = [
{
name: '运营',
children: [
- { path: '/accounts/import', name: '账号导入' },
- { path: '/accounts', name: '我的账号' },
- { path: '/accounts/monitoring', name: '监控账号' },
- { path: '/creator/competitors', name: '竞品分析' },
- { path: '/creator/workbench', name: '运营工作台' },
- { path: '/creator/settings', name: '采集设置' },
- { path: '/tasks', name: '任务中心' },
+ { path: '/accounts/import', name: '账号导入', icon:
},
+ { path: '/accounts', name: '我的账号', icon:
},
+ { path: '/accounts/monitoring', name: '监控账号', icon:
},
+ { path: '/creator/competitors', name: '竞品分析', icon:
},
+ { path: '/creator/workbench', name: '运营工作台', icon:
},
+ { path: '/creator/settings', name: '采集设置', icon:
},
+ { path: '/tasks', name: '任务中心', icon:
},
],
},
{
name: '资源',
children: [
- { path: '/browsers', name: '运行环境' },
- { path: '/network-exits', name: '网络出口' },
- { path: '/gateways', name: '网关管理' },
+ { path: '/browsers', name: '运行环境', icon:
},
+ { path: '/network-exits', name: '网络出口', icon:
},
+ { path: '/gateways', name: '网关管理', icon:
},
],
},
];