From c72bbaa5f75c7d18a4bfdf262d9d4fa1b4256cb9 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 15 May 2025 18:10:35 +0800 Subject: [PATCH] fix: Fix the problem of abnormal display of snapshot task logs (#8676) Refs #8657 --- agent/app/service/cronjob_helper.go | 1 - frontend/src/views/setting/snapshot/index.vue | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/agent/app/service/cronjob_helper.go b/agent/app/service/cronjob_helper.go index 82a0af959..b077bec16 100644 --- a/agent/app/service/cronjob_helper.go +++ b/agent/app/service/cronjob_helper.go @@ -103,7 +103,6 @@ func (u *CronjobService) loadTask(cronjob *model.Cronjob, record *model.JobRecor case "log": err = u.handleSystemLog(*cronjob, record.StartTime, taskItem) case "snapshot": - taskItem.Task.Type = task.TaskScopeSnapshot _ = cronjobRepo.UpdateRecords(record.ID, map[string]interface{}{"records": record.Records}) err = u.handleSnapshot(*cronjob, *record, taskItem) } diff --git a/frontend/src/views/setting/snapshot/index.vue b/frontend/src/views/setting/snapshot/index.vue index a33004128..9ac27ff51 100644 --- a/frontend/src/views/setting/snapshot/index.vue +++ b/frontend/src/views/setting/snapshot/index.vue @@ -91,7 +91,7 @@