diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 7cbd891..6207d6f 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -85,7 +85,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' }); }