File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
web/src/components/table/task-logs Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -371,18 +371,19 @@ export const getTaskLogsColumns = ({
371371 const isSuccess = record . status === 'SUCCESS' ;
372372 const isUrl = typeof text === 'string' && / ^ h t t p s ? : \/ \/ / . test ( text ) ;
373373 if ( isSuccess && isVideoTask && isUrl ) {
374- const videoUrl = `/v1/videos/${ record . task_id } /content` ;
375- return (
376- < a
377- href = '#'
378- onClick = { ( e ) => {
379- e . preventDefault ( ) ;
380- openVideoModal ( videoUrl ) ;
381- } }
382- >
383- { t ( '点击预览视频' ) }
384- </ a >
385- ) ;
374+ if ( isSuccess && isVideoTask && isUrl ) {
375+ return (
376+ < a
377+ href = '#'
378+ onClick = { ( e ) => {
379+ e . preventDefault ( ) ;
380+ openVideoModal ( text ) ;
381+ } }
382+ >
383+ { t ( '点击预览视频' ) }
384+ </ a >
385+ ) ;
386+ }
386387 }
387388 if ( ! text ) {
388389 return t ( '无' ) ;
You can’t perform that action at this time.
0 commit comments