From b5a1ffe3386457eedab93288c3a9f573b445a3d5 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:38:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=86=85=E5=AD=98=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=9D=E7=95=992=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=20(#1549)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/app-store/detail/install/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/app-store/detail/install/index.vue b/frontend/src/views/app-store/detail/install/index.vue index 72639bdf7..36c42cc06 100644 --- a/frontend/src/views/app-store/detail/install/index.vue +++ b/frontend/src/views/app-store/detail/install/index.vue @@ -165,7 +165,7 @@ const initData = () => ({ advanced: true, cpuQuota: 0, memoryLimit: 0, - memoryUnit: 'MB', + memoryUnit: 'M', containerName: '', allowPort: false, editCompose: false, @@ -187,7 +187,7 @@ const changeUnit = () => { if (req.memoryUnit == 'M') { limits.value.memory = oldMemory.value; } else { - limits.value.memory = oldMemory.value / 1024; + limits.value.memory = Number((oldMemory.value / 1024).toFixed(2)); } };