fix: Fixed issue where original Compose file content was cleared during comparison (#10880)

This commit is contained in:
CityFun 2025-11-07 14:46:30 +08:00 committed by GitHub
parent 9d84120181
commit 7fa39687b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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 {

View file

@ -208,7 +208,9 @@ const composeDiffRef = ref();
const rawCompose = ref('');
const getNewCompose = (compose: string) => {
paramModel.dockerCompose = compose;
if (compose != '') {
paramModel.dockerCompose = compose;
}
};
const openDiff = () => {