mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: docker 状态判断逻辑修改 (#1073)
This commit is contained in:
@@ -130,8 +130,8 @@ export const composeUpdate = (params: Container.ComposeUpdate) => {
|
||||
};
|
||||
|
||||
// docker
|
||||
export const dockerOperate = (params: Container.DockerOperate) => {
|
||||
return http.post(`/containers/docker/operate`, params);
|
||||
export const dockerOperate = (operation: string) => {
|
||||
return http.post(`/containers/docker/operate`, { operation: operation });
|
||||
};
|
||||
export const loadDaemonJson = () => {
|
||||
return http.get<Container.DaemonJsonConf>(`/containers/daemonjson`);
|
||||
|
||||
Reference in New Issue
Block a user