|
|
@@ -1523,6 +1523,9 @@ HTML_TEMPLATE = '''<!DOCTYPE html>
|
|
|
return true;
|
|
|
}});
|
|
|
|
|
|
+ // 保存到全局供其他函数使用
|
|
|
+ window.currentLinks = links;
|
|
|
+
|
|
|
// 分离节点类型
|
|
|
const postNodes = nodes.filter(n => n.source === "帖子");
|
|
|
const personaNodes = nodes.filter(n => n.source === "人设" && !n.是否扩展);
|
|
|
@@ -4074,6 +4077,7 @@ HTML_TEMPLATE = '''<!DOCTYPE html>
|
|
|
|
|
|
// 高亮匹配边(复用highlightEdge逻辑)
|
|
|
function highlightMatchEdge(srcId, tgtId) {{
|
|
|
+ const links = window.currentLinks;
|
|
|
if (!links) return;
|
|
|
|
|
|
// 找到对应的边和索引
|