diff --git a/Web/src/pages/explore/Index.tsx b/Web/src/pages/explore/Index.tsx index 6690dd6..aef763b 100644 --- a/Web/src/pages/explore/Index.tsx +++ b/Web/src/pages/explore/Index.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect, useCallback } from 'react'; import { Card, Button, Space, Modal, message, Typography, - Row, Col, Image, Form, Input, Avatar, + Row, Col, Form, Input, Avatar, Tag, Tooltip, Spin, Empty, Statistic, Select, Grid } from 'antd'; @@ -17,6 +17,7 @@ import { type FaceClusterResponse, type UpdateClusterRequest } from '../../api'; import type { PictureResponse } from '../../api/pictureApi'; +import ImageGrid from '../../components/image/ImageGrid/ImageGrid'; const { Title, Text, Paragraph } = Typography; const { confirm } = Modal; @@ -69,7 +70,7 @@ const FaceExplore: React.FC = () => { const fetchClusterPictures = useCallback(async (clusterId: number) => { setPicturesLoading(true); try { - const response = await getMyPicturesByCluster(clusterId, 1, 50); + const response = await getMyPicturesByCluster(clusterId, 1, 100); // 增加获取数量 if (response.success) { const actualData = response.data?.data || response.data; setClusterPictures(Array.isArray(actualData) ? actualData : []); @@ -443,72 +444,27 @@ const FaceExplore: React.FC = () => { open={isPictureModalVisible} onCancel={() => setIsPictureModalVisible(false)} footer={null} - width={800} + width="90vw" + style={{ maxWidth: 1200 }} destroyOnClose > - - {clusterPictures.length > 0 ? ( -
- {clusterPictures.map(picture => ( -
- -
- {picture.name || `图片${picture.id}`} -
-
- - 查看大图 -
- ) - }} - /> -
-
- ))} - - ) : ( - - )} -
+
+ +
+ ); };