diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 8b8c983..7b8bc37 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -64,7 +64,7 @@ export class DecisionApi implements Api { // TODO: 当前emit同步回调已无法执行 this.sendEditStatusEvent(name, editStatusEvent.OPEN); - if (Dec.socket?.connected) { + if (!Dec.socket?.connected) { return Promise.resolve({ data: 'success' }); }