diff --git a/admin/dashboard/templates/message_push_management.html b/admin/dashboard/templates/message_push_management.html index 9afc1eb..f82055b 100644 --- a/admin/dashboard/templates/message_push_management.html +++ b/admin/dashboard/templates/message_push_management.html @@ -601,7 +601,12 @@ new Vue({ // 编辑任务 editTask(task) { this.dialogTitle = '编辑任务'; - this.taskForm = { ...task }; + // 创建一个新对象,并确保日期字段被正确格式化 + this.taskForm = { + ...task, + schedule_time: task.schedule_time ? new Date(task.schedule_time).toISOString().slice(0, 19).replace('T', ' ') : '', + recurring_end: task.recurring_end ? new Date(task.recurring_end).toISOString().slice(0, 19).replace('T', ' ') : '' + }; // 处理链接内容 if (task.content_link) { try {