From 7fa39687b55f806db07797bbdb985a890730ae5e Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:46:30 +0800 Subject: [PATCH] fix: Fixed issue where original Compose file content was cleared during comparison (#10880) --- agent/app/service/cronjob_helper.go | 2 +- frontend/src/views/app-store/installed/detail/index.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/agent/app/service/cronjob_helper.go b/agent/app/service/cronjob_helper.go index f0bb91a9d..f7e58b757 100644 --- a/agent/app/service/cronjob_helper.go +++ b/agent/app/service/cronjob_helper.go @@ -243,7 +243,7 @@ func (u *CronjobService) handleCleanLog(cronjob model.Cronjob, taskItem *task.Ta } appInstall, _ := getAppInstallByKey(constant.AppOpenresty) if appInstall.ID > 0 { - curStr := i18n.GetWithName("CleanLogByName", "Openresty") + curStr := i18n.GetWithName("CleanLogByName", "OpenResty") t.LogStart(curStr) accessLogPath := path.Join(appInstall.GetPath(), "log", "access.log") if err := os.Truncate(accessLogPath, 0); err != nil { diff --git a/frontend/src/views/app-store/installed/detail/index.vue b/frontend/src/views/app-store/installed/detail/index.vue index cdc8eb8fa..5014c5d4d 100644 --- a/frontend/src/views/app-store/installed/detail/index.vue +++ b/frontend/src/views/app-store/installed/detail/index.vue @@ -208,7 +208,9 @@ const composeDiffRef = ref(); const rawCompose = ref(''); const getNewCompose = (compose: string) => { - paramModel.dockerCompose = compose; + if (compose != '') { + paramModel.dockerCompose = compose; + } }; const openDiff = () => {