diff --git a/admin/dashboard/templates/message_push_management.html b/admin/dashboard/templates/message_push_management.html index 58faa6d..596cea3 100644 --- a/admin/dashboard/templates/message_push_management.html +++ b/admin/dashboard/templates/message_push_management.html @@ -736,7 +736,7 @@ new Vue({ } else { this.taskForm.weekly_days = []; } - + // 处理链接内容 if (task.content_link) { try { @@ -762,14 +762,34 @@ new Vue({ }; } } + + // 处理图片 if (task.content_image) { - // 编辑时显示图片 const fileName = task.content_image.split('/').pop(); this.imageList = [{ name: '已上传图片', url: `/static/uploads/${fileName}` // 显示时使用相对路径 }]; } + + // 处理语音 + if (task.content_voice) { + const fileName = task.content_voice.split('/').pop(); + this.voiceList = [{ + name: '已上传语音', + url: `/static/uploads/${fileName}` // 显示时使用相对路径 + }]; + } + + // 处理视频 + if (task.content_video) { + const fileName = task.content_video.split('/').pop(); + this.videoList = [{ + name: '已上传视频', + url: `/static/uploads/${fileName}` // 显示时使用相对路径 + }]; + } + this.taskDialogVisible = true; this.isEdit = true; },