diff --git a/backend/app/service/backup_app.go b/backend/app/service/backup_app.go index f9996cc8b..f6dbe10de 100644 --- a/backend/app/service/backup_app.go +++ b/backend/app/service/backup_app.go @@ -180,7 +180,7 @@ func handleAppRecover(install *model.AppInstall, recoverFile string, isRollback if err != nil { return err } - if resource.Key == "mysql" || resource.Key == "maraidb" { + if resource.Key == "mysql" || resource.Key == "mariadb" { mysqlInfo, err := appInstallRepo.LoadBaseInfo(resource.Key, resourceApp.Name) if err != nil { return err diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index 2b8fc5245..7eb0a02c0 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -417,8 +417,12 @@ const onSubmit = async (formEl: FormInstance | undefined) => { if (dialogData.value.rowData!.entrypointStr) { dialogData.value.rowData!.entrypoint = dialogData.value.rowData!.entrypointStr.split(' '); } - if (!checkPortValid()) { - return; + if (dialogData.value.rowData!.publishAllPorts) { + dialogData.value.rowData!.exposedPorts = []; + } else { + if (!checkPortValid()) { + return; + } } dialogData.value.rowData!.memory = Number(dialogData.value.rowData!.memory); dialogData.value.rowData!.nanoCPUs = Number(dialogData.value.rowData!.nanoCPUs);