From cab0c7938d2b9ddc47bc7cb8935ac7f97547f6d8 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:12:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=AB=AF=E5=8F=A3=E9=80=89=E9=A1=B9=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=BB=8D=E7=84=B6=E8=BF=9B=E8=A1=8C=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E7=9A=84=E9=97=AE=E9=A2=98=20(#2277)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/backup_app.go | 2 +- frontend/src/views/container/container/operate/index.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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);