Browse Source

fix: 解决部分容器编辑无法正常打开的问题 (#1645)

pull/1651/head
ssongliu 1 year ago committed by GitHub
parent
commit
5e7d5c0235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      frontend/src/views/container/container/operate/index.vue

1
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); title.value = i18n.global.t('container.' + dialogData.value.title);
if (params.title === 'edit') { if (params.title === 'edit') {
dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2)); dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2));
dialogData.value.rowData.cmd = dialogData.value.rowData.cmd || [];
let itemCmd = ''; let itemCmd = '';
for (const item of dialogData.value.rowData.cmd) { for (const item of dialogData.value.rowData.cmd) {
itemCmd += `'${item}' `; itemCmd += `'${item}' `;

Loading…
Cancel
Save