mirror of https://github.com/jumpserver/jumpserver
perf: 优化任务日志页面时间显示兼容问题
parent
e2de744398
commit
c3ea5300a3
|
@ -135,7 +135,7 @@
|
|||
method: "GET",
|
||||
flash_message: false,
|
||||
success(data) {
|
||||
const dateStart = new Date(data.date_start).toLocaleString();
|
||||
const dateStart = data.date_start ? new Date(data.date_start).toLocaleString() : '';
|
||||
$('.task-id').html(data.id);
|
||||
$('.task-type').html(data.task_name);
|
||||
$('.date-start').html(dateStart);
|
||||
|
|
Loading…
Reference in New Issue