Browse Source

Pull request #8996: KERNEL-15739 fix: 【服务拆分】数据连接补充下socket连接异常场景

Merge in DEC/decision-webui-dcm from ~AUSTIN.DUAN/decision-webui-dcm:research/11.0 to research/11.0

* commit '1b8aa4e63ac1882603f3d03f8e8144397c0493e6':
  KERNEL-15739 fix: 【服务拆分】数据连接补充下socket连接异常场景
research/11.0
Austin.Duan-段嗣跃 8 months ago
parent
commit
a50190eb1c
  1. 4
      src/modules/crud/decision.api.ts

4
src/modules/crud/decision.api.ts

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

Loading…
Cancel
Save