mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-18 15:57:26 +00:00
feat: all video preview use videos/:id/content
This commit is contained in:
@@ -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('点击预览视频')}
|
||||
|
||||
Reference in New Issue
Block a user