|
@@ -72,7 +72,7 @@ const PunlishPlanDetailModal: React.FC<PunlishPlanDetailModalProps> = ({
|
|
|
const link = document.createElement('a');
|
|
|
link.href = video.cover;
|
|
|
// Attempt to infer filename, might need refinement
|
|
|
- const filename = video.cover.substring(video.cover.lastIndexOf('/') + 1) || `cover_${video.id}.jpg`;
|
|
|
+ const filename = video.cover.substring(video.cover.lastIndexOf('/') + 1) || `cover_${video.videoId}.jpg`;
|
|
|
link.download = filename;
|
|
|
link.target = '_blank'; // Open in new tab might be safer for some browsers
|
|
|
link.rel = 'noopener noreferrer';
|