From d131bc91d837b2931d9c4267d09ac2b971a196c0 Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Wed, 24 Jul 2024 16:57:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E4=BD=93=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E5=9B=BE=E4=BC=98=E5=8C=96:=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=8F=B3=E4=BE=A7=E7=AA=97=E5=8F=A3=E9=A1=B6?= =?UTF-8?q?=E9=83=A8=E4=BF=A1=E6=81=AF=E6=97=A0=E9=9C=80=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2=E5=AE=8C=E6=AF=95=EF=BC=8C?= =?UTF-8?q?=E5=8D=B3=E5=8F=AF=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 2 ++ .../entityGraph/GraphEntityDetail.vue | 15 ++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 73c9df38..7ad58692 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -22,6 +22,8 @@
-
{{entityTypeName}}
+
{{currentEntityType}}
-
{{ $_.get(node, 'realId', '') }}
+
{{title}}
@@ -110,6 +110,12 @@ export default { node: { type: Object }, + currentEntityType: { + type: String + }, + title: { + type: String + }, loading: { type: Boolean } @@ -126,7 +132,7 @@ export default { computed: { iconClass () { let className - switch (_.get(this.node, 'data.entityType', '')) { + switch (this.currentEntityType) { case ('ip'): { className = 'cn-icon cn-icon-resolve-ip' break @@ -145,9 +151,8 @@ export default { return className }, entityTypeName () { - const type = _.get(this.node, 'data.entityType', '') let entityTypeName = '-' - switch (type) { + switch (this.entityType) { case ('ip'): { entityTypeName = 'IP' break