mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-09 18:18:05 +00:00
perf: 优化任务日志页面时间显示兼容问题
This commit is contained in:
parent
e2de744398
commit
c3ea5300a3
@ -135,7 +135,7 @@
|
|||||||
method: "GET",
|
method: "GET",
|
||||||
flash_message: false,
|
flash_message: false,
|
||||||
success(data) {
|
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-id').html(data.id);
|
||||||
$('.task-type').html(data.task_name);
|
$('.task-type').html(data.task_name);
|
||||||
$('.date-start').html(dateStart);
|
$('.date-start').html(dateStart);
|
||||||
|
Loading…
Reference in New Issue
Block a user