From b2777055bccd27ce9745f1729e89d6f526207a36 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:27:40 +0800 Subject: [PATCH] fix: Fix website log cleanup selection state (#11549) --- agent/app/service/device_clean.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/agent/app/service/device_clean.go b/agent/app/service/device_clean.go index bd41d5ffa..a6bc997f5 100644 --- a/agent/app/service/device_clean.go +++ b/agent/app/service/device_clean.go @@ -690,12 +690,11 @@ func loadWebsiteLogTree(fileOp fileUtils.FileOp) []dto.CleanTree { for _, website := range websites { size3, _ := fileOp.GetDirSize(path.Join(GetSiteDir(website.Alias), "log")) res = append(res, dto.CleanTree{ - ID: uuid.NewString(), - Label: website.PrimaryDomain, - Size: uint64(size3), - IsCheck: size3 > 5*1024, - Type: "website_log", - Name: website.Alias, + ID: uuid.NewString(), + Label: website.PrimaryDomain, + Size: uint64(size3), + Type: "website_log", + Name: website.Alias, }) } return res