src/pages/inherit/list.vue
@@ -384,14 +384,17 @@ }, }; }); let that = this let that = this; const edgeType = this.viewType == 1 ? "cubic-horizontal" : "cubic-vertical"; this.graph.edge(function (node) { return { type: edgeType, color: "#A3B1BF", label: that.textStyle(node.target._cfg?.model.relationInfo) label: that.viewType == 1 ? node.target._cfg?.model.relationInfo : that.textStyle(node.target._cfg?.model.relationInfo), }; }); this.graph.on("node:click", (e) => {