From 75d94f5b89570cab7a723981351b403704ef1ede Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:47:45 +0800 Subject: [PATCH] feat: Fix 500 Error After Setting Authorized IP (#7334) --- backend/middleware/ip_limit.go | 2 +- frontend/src/views/app-store/installed/detail/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/middleware/ip_limit.go b/backend/middleware/ip_limit.go index c2d2aa740..00a03e2e0 100644 --- a/backend/middleware/ip_limit.go +++ b/backend/middleware/ip_limit.go @@ -35,7 +35,7 @@ func WhiteAllow() gin.HandlerFunc { } } code := LoadErrCode() - helper.ErrWithHtml(c, code, "ip_limit") + helper.ErrWithHtml(c, code, "err_ip_limit") } } diff --git a/frontend/src/views/app-store/installed/detail/index.vue b/frontend/src/views/app-store/installed/detail/index.vue index 279e8a557..6931a3ca2 100644 --- a/frontend/src/views/app-store/installed/detail/index.vue +++ b/frontend/src/views/app-store/installed/detail/index.vue @@ -259,7 +259,7 @@ const get = async () => { } paramModel.value.memoryLimit = res.data.memoryLimit; paramModel.value.cpuQuota = res.data.cpuQuota; - paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'MB'; + paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'M'; paramModel.value.allowPort = res.data.allowPort; paramModel.value.containerName = res.data.containerName; paramModel.value.advanced = false;