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

This commit is contained in:
feitianbubu committed 2025-11-28 13:11:31 +08:00
1 parent a1829c915e
commit e898e6aff3
3 files changed
+7 -7

No files matched your search

@@ -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('点击预览视频')}