diff --git a/App.jsx b/App.jsx index 6f8152f..16cea4e 100644 --- a/App.jsx +++ b/App.jsx @@ -5732,7 +5732,7 @@ const WEB_MAX_IMAGES = 6; const WEB_MAX_DETAIL_IMAGES = 20; // 网站图片列表(主图、详情图共用):多选上传、拖动排序、删除 -function WebImageList({ draft, set, onNotify, field, max, label, cover, tall }) { +function WebImageList({ draft, set, onNotify, field, max, label, cover, tall, accept = 'image/*' }) { const images = Array.isArray(draft[field]) ? draft[field] : []; const [uploading, setUploading] = useState(false); const [dragIdx, setDragIdx] = useState(null); @@ -5786,7 +5786,9 @@ function WebImageList({ draft, set, onNotify, field, max, label, cover, tall }) onDrop={() => handleDrop(idx)} onDragEnd={() => setDragIdx(null)} > - + {/\.(mp4|webm)$/i.test(f) + ?