Skip to content

Commit

Permalink
fix: 解决容器没有 entrypoint 无法打开编辑页面的问题 (#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Oct 14, 2023
1 parent 9995102 commit 51ca89d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/views/container/container/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,12 @@ const acceptParams = (params: DialogProps): void => {
dialogData.value.rowData.cmdStr = itemCmd ? itemCmd.substring(0, itemCmd.length - 1) : '';
let itemEntrypoint = '';
for (const item of dialogData.value.rowData.entrypoint) {
itemEntrypoint += `'${item}' `;
if (dialogData.value.rowData?.entrypoint) {
for (const item of dialogData.value.rowData.entrypoint) {
itemEntrypoint += `'${item}' `;
}
}
dialogData.value.rowData.entrypointStr = itemEntrypoint
? itemEntrypoint.substring(0, itemEntrypoint.length - 1)
: '';
Expand Down

0 comments on commit 51ca89d

Please sign in to comment.