diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index 3a1043013..e2bf46847 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -264,6 +264,7 @@ const acceptParams = (params: DialogProps): void => { title.value = i18n.global.t('container.' + dialogData.value.title); if (params.title === 'edit') { dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2)); + dialogData.value.rowData.cmd = dialogData.value.rowData.cmd || []; let itemCmd = ''; for (const item of dialogData.value.rowData.cmd) { itemCmd += `'${item}' `;