定时任务详情增加额外定时展示

This commit is contained in:
whyour
2023-09-29 23:16:07 +08:00
parent 4c19054b30
commit 9d55cb108c
8 changed files with 282 additions and 210 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import React, { useEffect, useState } from 'react';
import { Typography, Table, Tag, Button, Spin, message } from 'antd';
import { request } from '@/utils/http';
import config from '@/utils/config';
import dayjs from 'dayjs';
const { Text, Link } = Typography;
@@ -30,7 +31,7 @@ const columns = [
key: 'timestamp',
width: 120,
render: (text: string, record: any) => {
return new Date(record.timestamp).toLocaleString();
return dayjs(record.timestamp).format('YYYY-MM-DD HH:mm:ss');
},
},
{