diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index 5fb53ccf9..6bdcef2d7 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -226,6 +226,10 @@ func upgradeInstall(installId uint, detailId uint) error { } detailDir := path.Join(constant.ResourceDir, "apps", install.App.Key, "versions", detail.Version) + if install.App.Resource == constant.AppResourceLocal { + detailDir = path.Join(constant.ResourceDir, "localApps", strings.TrimPrefix(install.App.Key, "local"), "versions", detail.Version) + } + cmd := exec.Command("/bin/bash", "-c", fmt.Sprintf("cp -rf %s/* %s", detailDir, install.GetPath())) stdout, err := cmd.CombinedOutput() if err != nil { diff --git a/frontend/src/views/host/file-management/code-editor/index.vue b/frontend/src/views/host/file-management/code-editor/index.vue index 314a317bf..df79abf8d 100644 --- a/frontend/src/views/host/file-management/code-editor/index.vue +++ b/frontend/src/views/host/file-management/code-editor/index.vue @@ -183,7 +183,9 @@ const saveContent = (closePage: boolean) => { loading.value = false; open.value = !closePage; MsgSuccess(i18n.global.t('commons.msg.updateSuccess')); - handleClose(); + if (closePage) { + handleClose(); + } }); };