From cc51eaef3f44f627b89002eb5e57211403938c66 Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Mon, 10 Apr 2023 16:22:29 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=B9=E5=99=A8=E5=88=9B=E5=BB=BA?=
=?UTF-8?q?=E4=B8=AD=E5=91=BD=E4=BB=A4=E8=BE=93=E5=85=A5=E6=96=B9=E5=BC=8F?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=20(#561)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/lang/modules/en.ts | 2 +-
frontend/src/lang/modules/zh.ts | 2 +-
frontend/src/views/container/container/create/index.vue | 9 ++-------
3 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index de0c9d5a6..ee3329c43 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -452,7 +452,7 @@ const message = {
containerPort: 'Container port',
serverPort: 'Host port',
cmd: 'Command',
- cmdHelper: 'one in a row, for example: \n/bin/bash \necho "hello"',
+ cmdHelper: 'Example: echo "hello"',
autoRemove: 'Auto remove',
cpuQuota: 'NacosCPU',
memoryLimit: 'Memory',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 92b89af12..5901894d7 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -461,7 +461,7 @@ const message = {
containerPort: '容器端口',
serverPort: '服务器端口',
cmd: '启动命令',
- cmdHelper: '一行一个,例:\n/bin/bash \necho "hello"',
+ cmdHelper: '例:echo "hello"',
autoRemove: '容器退出后自动删除容器',
cpuQuota: 'CPU 限制',
memoryLimit: '内存限制',
diff --git a/frontend/src/views/container/container/create/index.vue b/frontend/src/views/container/container/create/index.vue
index 979f1d865..2895caaa7 100644
--- a/frontend/src/views/container/container/create/index.vue
+++ b/frontend/src/views/container/container/create/index.vue
@@ -71,12 +71,7 @@
-
+
{{ $t('container.autoRemove') }}
@@ -330,7 +325,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
form.labels = form.labelsStr.split('\n');
}
if (form.cmdStr.length !== 0) {
- form.cmd = form.cmdStr.split('\n');
+ form.cmd = form.cmdStr.split(' ');
}
switch (form.memoryUnit) {
case 'KB':