Skip to content

Commit 85c935e

Browse files
authored
fix: 容器创建启动命令提示信息修改 (#1917)
1 parent b403347 commit 85c935e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

frontend/src/lang/modules/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ const message = {
533533
exposePort: 'Expose port',
534534
exposeAll: 'Expose all',
535535
cmd: 'Command',
536-
cmdHelper: 'Example: echo "hello"',
536+
cmdHelper: "Separate multiple commands with ' ' as delimiter, such as 'nginx' '-g' 'daemon off;'",
537537
autoRemove: 'Auto remove',
538538
cpuQuota: 'NacosCPU',
539539
memoryLimit: 'Memory',

frontend/src/lang/modules/tw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ const message = {
519519
exposePort: '暴露端口',
520520
exposeAll: '暴露所有',
521521
cmd: '啟動命令',
522-
cmdHelper: '例:echo "hello"',
522+
cmdHelper: "多個命令間請用 ' ' 分隔開,如 'nginx' '-g' 'daemon off;'",
523523
autoRemove: '容器退出後自動刪除容器',
524524
cpuQuota: 'CPU 限製',
525525
memoryLimit: '內存限製',

frontend/src/lang/modules/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ const message = {
519519
exposePort: '暴露端口',
520520
exposeAll: '暴露所有',
521521
cmd: '启动命令',
522-
cmdHelper: '例:echo "hello"',
522+
cmdHelper: "多个命令间请用 ' ' 分隔开,如 'nginx' '-g' 'daemon off;'",
523523
autoRemove: '容器退出后自动删除容器',
524524
cpuQuota: 'CPU 限制',
525525
memoryLimit: '内存限制',

frontend/src/views/container/container/operate/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
</el-select>
111111
</el-form-item>
112112
<el-form-item :label="$t('container.cmd')" prop="cmdStr">
113-
<el-input :placeholder="$t('container.cmdHelper')" v-model="dialogData.rowData!.cmdStr" />
113+
<el-input v-model="dialogData.rowData!.cmdStr" />
114+
<span class="input-help">{{ $t('container.cmdHelper') }}</span>
114115
</el-form-item>
115116
<el-form-item prop="autoRemove">
116117
<el-checkbox v-model="dialogData.rowData!.autoRemove">

0 commit comments

Comments
 (0)