Skip to content

Commit 81a5759

Browse files
committed
fix: 修复 on_error 无法连接至自身的问题
1 parent a6f55ff commit 81a5759

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

src/data/updateLogs.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,34 @@ export const longTermPreview: ForecastSection = {
8787
};
8888

8989
export const nextPreview: ForecastSection = {
90-
title: "Next Version",
91-
notice: "",
92-
items: [],
90+
title: "Next Version 至 v1.7.0",
91+
notice: "预告内容会随开发进度与实际需求调整,不代表最终承诺。",
92+
items: [
93+
{
94+
theme: "Wiki",
95+
title: "俺寻思",
96+
description: "文档站条目快速跳转",
97+
},
98+
{
99+
theme: "test",
100+
title: "使用前考试题目完善",
101+
description: "还有第二关,小子!",
102+
},
103+
],
93104
};
94105

95106
export const updateLogs: UpdateLogItem[] = [
96107
{
97108
version: "1.6.1",
98109
date: "2026-6-",
99-
type: "feature",
110+
type: "perf",
100111
updates: {
101-
features: [""],
112+
// features: [""],
102113
perfs: [
103114
"还原连接线路径时会自动进行 external 节点的就近连接重计算",
104115
"优化资源健康检查相关术语",
105116
],
117+
fixes: ["修复 on_error 无法连接至自身的问题"],
106118
},
107119
},
108120
{

src/stores/flow/slices/edgeSlice.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,6 @@ export const createEdgeSlice: StateCreator<FlowStore, [], [], FlowEdgeState> = (
183183
);
184184
break;
185185
case SourceHandleTypeEnum.Error:
186-
if (
187-
co.source === co.target &&
188-
co.sourceHandle === SourceHandleTypeEnum.Error
189-
) {
190-
crash = true;
191-
break;
192-
}
193186
// on_error 和 next 不能同时指向同一个节点
194187
crash = edges.find(
195188
(edge) =>

0 commit comments

Comments
 (0)