diff --git a/video-gen-app/src/pages/GenerateConver.tsx b/video-gen-app/src/pages/GenerateConver.tsx index c1e08e7e..779aa41b 100644 --- a/video-gen-app/src/pages/GenerateConver.tsx +++ b/video-gen-app/src/pages/GenerateConver.tsx @@ -242,6 +242,7 @@ const AIChatPage: React.FC = () => { const [attachmentPreviewUrl, setAttachmentPreviewUrl] = useState(''); const [attachmentPreviewType, setAttachmentPreviewType] = useState<'image' | 'video'>('image'); const [attachmentPreviewName, setAttachmentPreviewName] = useState(''); + const attachmentPreviewVideoRef = useRef(null); // 附件详情悬浮窗状态 const [attachmentPopupVisible, setAttachmentPopupVisible] = useState(false); @@ -1459,7 +1460,7 @@ const AIChatPage: React.FC = () => {
- 生成失败(积分已退) + 生成失败(积分已退) {msg.errorMessage && ( {msg.errorMessage} )} @@ -1645,12 +1646,25 @@ const AIChatPage: React.FC = () => { {media.name} { + setAttachmentPreviewUrl(media.url); + setAttachmentPreviewType('image'); + setAttachmentPreviewName(media.name); + setAttachmentPreviewVisible(true); + }} + style={{ width: '100%', height: 80, objectFit: 'cover', borderRadius: 8, cursor: 'pointer' }} /> ) : (