diff --git a/frontend/src/api/modules/container.ts b/frontend/src/api/modules/container.ts index a76249ff2..76c731b53 100644 --- a/frontend/src/api/modules/container.ts +++ b/frontend/src/api/modules/container.ts @@ -98,7 +98,7 @@ export const createVolume = (params: Container.VolumeCreate) => { // repo export const checkRepoStatus = (id: number) => { - return http.post(`/containers/repo/status`, { id: id }); + return http.post(`/containers/repo/status`, { id: id }, 40000); }; export const searchImageRepo = (params: SearchWithPage) => { return http.post>(`/containers/repo/search`, params); @@ -107,13 +107,13 @@ export const listImageRepo = () => { return http.get(`/containers/repo`); }; export const createImageRepo = (params: Container.RepoCreate) => { - return http.post(`/containers/repo`, params); + return http.post(`/containers/repo`, params, 40000); }; export const updateImageRepo = (params: Container.RepoUpdate) => { - return http.post(`/containers/repo/update`, params); + return http.post(`/containers/repo/update`, params, 40000); }; export const deleteImageRepo = (params: Container.RepoDelete) => { - return http.post(`/containers/repo/del`, params); + return http.post(`/containers/repo/del`, params, 40000); }; // composeTemplate diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index b0c27e9b0..a36692272 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -250,6 +250,8 @@ const acceptParams = (params: DialogProps): void => { itemCmd += `'${item}' `; } dialogData.value.rowData.cmdStr = itemCmd ? itemCmd.substring(0, itemCmd.length - 1) : ''; + dialogData.value.rowData.labels = dialogData.value.rowData.labels || []; + dialogData.value.rowData.env = dialogData.value.rowData.env || []; dialogData.value.rowData.labelsStr = dialogData.value.rowData.labels.join('\n'); dialogData.value.rowData.envStr = dialogData.value.rowData.env.join('\n'); dialogData.value.rowData.exposedPorts = dialogData.value.rowData.exposedPorts || [];