From b4043111a0a068b4b6093e21a0fe6a47b53db61f Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 10 Jun 2025 17:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=91=A8=E6=9C=9F=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E9=87=8C=E9=9D=A2=E7=9A=84=E6=AF=8F=E4=B8=AA=E5=91=A8?= =?UTF-8?q?=E6=9C=9F=E7=9A=84=E5=85=B7=E4=BD=93=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/templates/message_push_management.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/admin/dashboard/templates/message_push_management.html b/admin/dashboard/templates/message_push_management.html index 51d6ed6..23b2b46 100644 --- a/admin/dashboard/templates/message_push_management.html +++ b/admin/dashboard/templates/message_push_management.html @@ -618,11 +618,7 @@ new Vue({ try { // 创建任务数据对象 const taskData = { ...this.taskForm }; - - if (taskData.content_link) { - taskData.content_link = JSON.stringify(taskData.content_link); - } - + // 处理重复任务的特殊字段 if (taskData.schedule_type === 'recurring') { // 确保链接内容是JSON字符串 @@ -646,13 +642,13 @@ new Vue({ } if (response.data.success) { - this.$message.success(taskData.task_id ? '更新任务成功' : '创建任务成功'); + this.$message.success(this.taskForm.task_id ? '更新任务成功' : '创建任务成功'); this.taskDialogVisible = false; this.loadTasks(); this.loadStatistics(); } } catch (error) { - this.$message.error(taskData.task_id ? '更新任务失败' : '创建任务失败'); + this.$message.error(this.taskForm.task_id ? '更新任务失败' : '创建任务失败'); } } });