ecinc-cloud-wappaio 9.7.13 → 9.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138528,8 +138528,9 @@ function getPathXyData(connection, thisConnect) {
138528
138528
  }
138529
138529
  }
138530
138530
  }
138531
- // 自环线已有thisConnect存储值时优先使用,避免SVG提取的+5偏移在session间累积
138532
- var isSelfLoop = thisConnect && thisConnect.PageSourceId === thisConnect.PageTargetId;
138531
+ // 自环线判断:使用connection对象的真实sourceId/targetId,而非thisConnect属性
138532
+ // 新连接时thisConnect为空对象,undefined===undefined会误判为自环
138533
+ var isSelfLoop = connection.sourceId === connection.targetId;
138533
138534
  if (isSelfLoop) {
138534
138535
  // 同轴自环配对的path值相等,cross-axis则各自独立
138535
138536
  var crossAxis = firstEndpoints[2] !== 0 && secondEndpoints[3] !== 0 || firstEndpoints[3] !== 0 && secondEndpoints[2] !== 0;
@@ -138603,7 +138604,10 @@ function dragLine(_this, connection, thisConnect) {
138603
138604
  // 同轴异向检测(提前到lineCount检查之前,以便重定向lineCount=1的路径)
138604
138605
  var firstEndpoints = connection.endpoints[0].anchor.orientation;
138605
138606
  var secondEndpoints = connection.endpoints[1].anchor.orientation;
138606
- var isSameNode = thisConnect.PageSourceId === thisConnect.PageTargetId;
138607
+ // 关键修复:使用connection对象的真实sourceId/targetId判断同节点,
138608
+ // 而非thisConnect的PageSourceId/PageTargetId——新连接时thisConnect为空对象,
138609
+ // undefined===undefined会误判为同节点,导致自环分支用pathMaxY等大值作stub,产生外跳
138610
+ var isSameNode = connection.sourceId === connection.targetId;
138607
138611
  var isSameAxisDiffDir = !isSameNode && (firstEndpoints[0] !== 0 && secondEndpoints[0] !== 0 && firstEndpoints[0] !== secondEndpoints[0] || firstEndpoints[1] !== 0 && secondEndpoints[1] !== 0 && firstEndpoints[1] !== secondEndpoints[1]);
138608
138612
  if (lineCount < 2 && !isSameAxisDiffDir) {
138609
138613
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).unbind('mousedown');
@@ -139898,7 +139902,7 @@ function resetEndpointSourceFlags(ep) {
139898
139902
  ep.isTemporarySource = true;
139899
139903
  ep.dragAllowedWhenFull = true;
139900
139904
  if (ep._jsPlumb) {
139901
- ep._jsPlumb.maxConnections = 1; // isFull()=true → 拖拽进入移动模式
139905
+ ep._jsPlumb.maxConnections = -1; // 恢复无限连接,允许同一锚点出入多条连接线
139902
139906
  }
139903
139907
  if (ep._wfOrigPaintStyle) {
139904
139908
  for (var rk in ep._wfOrigPaintStyle) {
@@ -140021,7 +140025,7 @@ function initConnectionEndpointMode(ep) {
140021
140025
  if (ep._wfOrigMaxConnections === undefined) {
140022
140026
  ep._wfOrigMaxConnections = ep._jsPlumb.maxConnections;
140023
140027
  }
140024
- ep._jsPlumb.maxConnections = 1;
140028
+ ep._jsPlumb.maxConnections = -1; // 恢复无限连接,允许同一锚点出入多条连接线
140025
140029
  }
140026
140030
  }
140027
140031
 
@@ -271005,6 +271009,10 @@ service.interceptors.response.use(function (response) {
271005
271009
  body: {}
271006
271010
  };
271007
271011
  } else if (errmsg.indexOf('timeout') !== -1) {
271012
+ // 后台标签页浏览器节流导致超时,静默拒绝避免切换回前台时弹出大量提示
271013
+ if (document.visibilityState === 'hidden') {
271014
+ return Promise.reject(errmsg);
271015
+ }
271008
271016
  return {
271009
271017
  code: 'failure',
271010
271018
  message: '服务接口请求超时,请重试。',
@@ -138538,8 +138538,9 @@ function getPathXyData(connection, thisConnect) {
138538
138538
  }
138539
138539
  }
138540
138540
  }
138541
- // 自环线已有thisConnect存储值时优先使用,避免SVG提取的+5偏移在session间累积
138542
- var isSelfLoop = thisConnect && thisConnect.PageSourceId === thisConnect.PageTargetId;
138541
+ // 自环线判断:使用connection对象的真实sourceId/targetId,而非thisConnect属性
138542
+ // 新连接时thisConnect为空对象,undefined===undefined会误判为自环
138543
+ var isSelfLoop = connection.sourceId === connection.targetId;
138543
138544
  if (isSelfLoop) {
138544
138545
  // 同轴自环配对的path值相等,cross-axis则各自独立
138545
138546
  var crossAxis = firstEndpoints[2] !== 0 && secondEndpoints[3] !== 0 || firstEndpoints[3] !== 0 && secondEndpoints[2] !== 0;
@@ -138613,7 +138614,10 @@ function dragLine(_this, connection, thisConnect) {
138613
138614
  // 同轴异向检测(提前到lineCount检查之前,以便重定向lineCount=1的路径)
138614
138615
  var firstEndpoints = connection.endpoints[0].anchor.orientation;
138615
138616
  var secondEndpoints = connection.endpoints[1].anchor.orientation;
138616
- var isSameNode = thisConnect.PageSourceId === thisConnect.PageTargetId;
138617
+ // 关键修复:使用connection对象的真实sourceId/targetId判断同节点,
138618
+ // 而非thisConnect的PageSourceId/PageTargetId——新连接时thisConnect为空对象,
138619
+ // undefined===undefined会误判为同节点,导致自环分支用pathMaxY等大值作stub,产生外跳
138620
+ var isSameNode = connection.sourceId === connection.targetId;
138617
138621
  var isSameAxisDiffDir = !isSameNode && (firstEndpoints[0] !== 0 && secondEndpoints[0] !== 0 && firstEndpoints[0] !== secondEndpoints[0] || firstEndpoints[1] !== 0 && secondEndpoints[1] !== 0 && firstEndpoints[1] !== secondEndpoints[1]);
138618
138622
  if (lineCount < 2 && !isSameAxisDiffDir) {
138619
138623
  jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).unbind('mousedown');
@@ -139908,7 +139912,7 @@ function resetEndpointSourceFlags(ep) {
139908
139912
  ep.isTemporarySource = true;
139909
139913
  ep.dragAllowedWhenFull = true;
139910
139914
  if (ep._jsPlumb) {
139911
- ep._jsPlumb.maxConnections = 1; // isFull()=true → 拖拽进入移动模式
139915
+ ep._jsPlumb.maxConnections = -1; // 恢复无限连接,允许同一锚点出入多条连接线
139912
139916
  }
139913
139917
  if (ep._wfOrigPaintStyle) {
139914
139918
  for (var rk in ep._wfOrigPaintStyle) {
@@ -140031,7 +140035,7 @@ function initConnectionEndpointMode(ep) {
140031
140035
  if (ep._wfOrigMaxConnections === undefined) {
140032
140036
  ep._wfOrigMaxConnections = ep._jsPlumb.maxConnections;
140033
140037
  }
140034
- ep._jsPlumb.maxConnections = 1;
140038
+ ep._jsPlumb.maxConnections = -1; // 恢复无限连接,允许同一锚点出入多条连接线
140035
140039
  }
140036
140040
  }
140037
140041
 
@@ -271015,6 +271019,10 @@ service.interceptors.response.use(function (response) {
271015
271019
  body: {}
271016
271020
  };
271017
271021
  } else if (errmsg.indexOf('timeout') !== -1) {
271022
+ // 后台标签页浏览器节流导致超时,静默拒绝避免切换回前台时弹出大量提示
271023
+ if (document.visibilityState === 'hidden') {
271024
+ return Promise.reject(errmsg);
271025
+ }
271018
271026
  return {
271019
271027
  code: 'failure',
271020
271028
  message: '服务接口请求超时,请重试。',