feat: all video preview use videos/:id/content

This commit is contained in:
feitianbubu
2025-11-28 12:39:37 +08:00
parent a1829c915e
commit e898e6aff3
3 changed files with 7 additions and 7 deletions

View File

@@ -363,12 +363,13 @@ export const getTaskLogsColumns = ({
const isSuccess = record.status === 'SUCCESS';
const isUrl = typeof text === 'string' && /^https?:\/\//.test(text);
if (isSuccess && isVideoTask && isUrl) {
const videoUrl = `/v1/videos/${record.task_id}/content`;
return (
<a
href='#'
onClick={(e) => {
e.preventDefault();
openVideoModal(text);
openVideoModal(videoUrl);
}}
>
{t('点击预览视频')}