From 141786e4e90fddf64828739f41e54b1fcd80193b Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:35:56 +0800 Subject: [PATCH] fix: FIx the issue of container editing not opening successfully (#7360) --- frontend/src/lang/modules/en.ts | 4 ++-- frontend/src/views/container/container/index.vue | 2 +- frontend/src/views/container/container/operate/index.vue | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 3043b1ca2..705ba97ca 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -39,7 +39,7 @@ const message = { handle: 'Trigger', expand: 'Expand', collapse: 'Collapse', - log: 'View logs', + log: 'Logs', back: 'Back', backup: 'Backup', recover: 'Recover', @@ -667,7 +667,7 @@ const message = { openStdin: 'Keep STDIN open even if not attached (-i)', custom: 'Custom', emptyUser: 'When empty, you will log in as default', - containerTerminal: 'Open terminal', + containerTerminal: 'Terminal', privileged: 'Privileged', privilegedHelper: 'Allow the container to perform certain privileged operations on the host, which may increase container risks. Use with caution!', diff --git a/frontend/src/views/container/container/index.vue b/frontend/src/views/container/container/index.vue index ca34fa940..a1ec8eb77 100644 --- a/frontend/src/views/container/container/index.vue +++ b/frontend/src/views/container/container/index.vue @@ -292,7 +292,7 @@ /> { dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2)); let itemCmd = ''; + dialogData.value.rowData.cmd = dialogData.value.rowData?.cmd || []; for (const item of dialogData.value.rowData.cmd) { if (item.indexOf(' ') !== -1) { itemCmd += `"${escapeQuotes(item)}" `; @@ -368,6 +369,7 @@ const acceptParams = (params: DialogProps): void => { } dialogData.value.rowData.cmdStr = itemCmd.trimEnd(); let itemEntrypoint = ''; + dialogData.value.rowData.entrypoint = dialogData.value.rowData?.entrypoint || []; for (const item of dialogData.value.rowData.entrypoint) { if (item.indexOf(' ') !== -1) { itemEntrypoint += `"${escapeQuotes(item)}" `;