mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-30 17:31:47 +00:00
remove duplicate condition in TaskLogsColumnDefs
This commit is contained in:
@@ -371,19 +371,17 @@ export const getTaskLogsColumns = ({
|
|||||||
const isSuccess = record.status === 'SUCCESS';
|
const isSuccess = record.status === 'SUCCESS';
|
||||||
const isUrl = typeof text === 'string' && /^https?:\/\//.test(text);
|
const isUrl = typeof text === 'string' && /^https?:\/\//.test(text);
|
||||||
if (isSuccess && isVideoTask && isUrl) {
|
if (isSuccess && isVideoTask && isUrl) {
|
||||||
if (isSuccess && isVideoTask && isUrl) {
|
return (
|
||||||
return (
|
<a
|
||||||
<a
|
href='#'
|
||||||
href='#'
|
onClick={(e) => {
|
||||||
onClick={(e) => {
|
e.preventDefault();
|
||||||
e.preventDefault();
|
openVideoModal(text);
|
||||||
openVideoModal(text);
|
}}
|
||||||
}}
|
>
|
||||||
>
|
{t('点击预览视频')}
|
||||||
{t('点击预览视频')}
|
</a>
|
||||||
</a>
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!text) {
|
if (!text) {
|
||||||
return t('无');
|
return t('无');
|
||||||
|
|||||||
Reference in New Issue
Block a user