mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-06-23 00:52:07 +08:00
🐛fix: 修复网关节点查询异常
This commit is contained in:
@@ -267,6 +267,8 @@ namespace OpenAuth.App.Flow
|
|||||||
isFirst = false;
|
isFirst = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
preNode = GetPreNode(preNode.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isFirst)
|
if (isFirst)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com>
|
* @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com>
|
||||||
* @Date: 2024-01-08 17:08:56
|
* @Date: 2024-01-08 17:08:56
|
||||||
* @LastEditTime: 2024-06-21 10:16:05
|
* @LastEditTime: 2026-06-14 22:50:56
|
||||||
* @Description:
|
* @Description:
|
||||||
* @
|
* @
|
||||||
* @Copyright (c) 2024 by yubaolee | ahfu~ , All Rights Reserved.
|
* @Copyright (c) 2024 by yubaolee | ahfu~ , All Rights Reserved.
|
||||||
@@ -304,9 +304,20 @@ export default {
|
|||||||
const to = info.targetId
|
const to = info.targetId
|
||||||
|
|
||||||
if (from === to) return false
|
if (from === to) return false
|
||||||
const filter = that.flowData.lines.filter(link => (link.from === from && link.to === to))
|
const filter = that.flowData.lines.filter(link => (link.from === from && link.to === to)
|
||||||
|
|| (link.from === to && link.to === from))
|
||||||
if (filter.length > 0) {
|
if (filter.length > 0) {
|
||||||
that.$message.error('同方向的两节点连线只能有一条!')
|
that.$message.error('两节点连线只能有一条!')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if(from.includes("end")){
|
||||||
|
that.$message.error('结束节点不能作为起点!')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if(to.includes("start")){
|
||||||
|
that.$message.error('开始节点不能作为终点!')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user