mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 00:00:52 +00:00
fix: docker 状态判断逻辑修改 (#1073)
This commit is contained in:
@@ -247,11 +247,6 @@ export namespace Container {
|
||||
export interface DaemonJsonUpdateByFile {
|
||||
file: string;
|
||||
}
|
||||
export interface DockerOperate {
|
||||
stopSocket: boolean;
|
||||
stopService: boolean;
|
||||
operation: string;
|
||||
}
|
||||
export interface DaemonJsonConf {
|
||||
isSwarm: boolean;
|
||||
status: string;
|
||||
|
||||
@@ -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