From 2b06902e25978254f39bef49ed3cf6b1cab1c033 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期五, 26 七月 2024 11:53:09 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary --- src/pages/inherit/list.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/inherit/list.vue b/src/pages/inherit/list.vue index eb25d41..9a9bf37 100644 --- a/src/pages/inherit/list.vue +++ b/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) => { -- Gitblit v1.9.1