|
|
@ -64,6 +64,10 @@ export class DecisionApi implements Api { |
|
|
|
// TODO: 当前emit同步回调已无法执行
|
|
|
|
// TODO: 当前emit同步回调已无法执行
|
|
|
|
this.sendEditStatusEvent(name, editStatusEvent.OPEN); |
|
|
|
this.sendEditStatusEvent(name, editStatusEvent.OPEN); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Dec.socket?.connected) { |
|
|
|
|
|
|
|
return Promise.resolve({ data: 'success' }); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return new Promise((resolve, rejected) => { |
|
|
|
return new Promise((resolve, rejected) => { |
|
|
|
this.addEventListener(editStatusEvent.OPEN, res => { |
|
|
|
this.addEventListener(editStatusEvent.OPEN, res => { |
|
|
|
const data = JSON.parse(res.data); |
|
|
|
const data = JSON.parse(res.data); |
|
|
|