mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 02:14:32 +08:00
定时任务详情增加额外定时展示
This commit is contained in:
Vendored
+4
-7
@@ -41,6 +41,7 @@ import { SharedContext } from '@/layouts';
|
||||
import useTableScrollHeight from '@/hooks/useTableScrollHeight';
|
||||
import Copy from '../../components/copy';
|
||||
import { useVT } from 'virtualizedtableforantd4';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const { Paragraph } = Typography;
|
||||
const { Search } = Input;
|
||||
@@ -137,13 +138,9 @@ const Env = () => {
|
||||
},
|
||||
},
|
||||
render: (text: string, record: any) => {
|
||||
const language = navigator.language || navigator.languages[0];
|
||||
const time = record.updatedAt || record.timestamp;
|
||||
const date = new Date(time)
|
||||
.toLocaleString(language, {
|
||||
hour12: false,
|
||||
})
|
||||
.replace(' 24:', ' 00:');
|
||||
const date = dayjs(record.updatedAt || record.timestamp).format(
|
||||
'YYYY-MM-DD HH:mm:ss',
|
||||
);
|
||||
return (
|
||||
<Tooltip
|
||||
placement="topLeft"
|
||||
|
||||
Reference in New Issue
Block a user