From 4b044331942b14ddee00f1d5eb9a35537f2c0683 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 17 Jul 2023 11:09:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E5=9B=BE=E6=9C=89=E6=97=B6=E8=8A=82=E7=82=B9label=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 10 +++++----- .../entityExplorer/entityGraphDetail/GraphDetail.vue | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 26c6cda4..1a579730 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -629,7 +629,7 @@ export default { width = 24 height = 24 if (node.data.type === 'app') { - label = this.$t('entities.relatedDomain') + label = this.$t('entities.graph.relatedDomain') } else if (node.data.type === 'ip') { label = this.$t('entities.graph.resolvedDomain') } @@ -696,7 +696,7 @@ export default { const ipNode = this.generatePrimaryNode({ id: 'ip-1', parentId: rootNode.id, - label: this.$t('entities.graph.resolveIp'), + label: this.$t(rootNode.data.type === 'app' ? 'entities.tab.relatedIp' : 'entities.graph.resolveIp'), x: 0, y: 300, data: { @@ -708,7 +708,7 @@ export default { const domainNode = this.generatePrimaryNode({ id: 'domain-1', parentId: rootNode.id, - label: this.$t('entity.graph.resolveDomain'), + label: this.$t(rootNode.data.type === 'app' ? 'entities.graph.relatedDomain' : 'entity.graph.resolveDomain'), x: 260, y: -150, data: { @@ -1269,7 +1269,7 @@ export default { switch (expandType) { case 'ip': { count = _.get(currentNode.data, 'relatedEntityCount.ip.total', 0) - label = `${this.$t('entities.graph.resolveIp')}(${count})` + label = `${this.$t(currentNode.data.type === 'app' ? 'entities.tab.relatedIp' : 'entities.graph.resolveIp')}(${count})` break } case 'domain': { @@ -1279,7 +1279,7 @@ export default { isSubdomain = true } else { count = _.get(currentNode.data, 'relatedEntityCount.domain.total', 0) - label = `${this.$t('entity.graph.resolveDomain')}(${count})` + label = `${this.$t(currentNode.data.type === 'app' ? 'entities.graph.relatedDomain' : 'entity.graph.resolveDomain')}(${count})` } break } diff --git a/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue b/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue index 77f6ee47..091f1d4f 100644 --- a/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue +++ b/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue @@ -480,7 +480,7 @@ export default { { icon: 'cn-icon cn-icon-subdomain', name: 'domain', - label: this.$t('entities.relatedDomain'), + label: this.$t('entities.graph.relatedDomain'), value: _.get(n.relatedEntityCount, 'domain.current', '0') || 0, total: _.get(n.relatedEntityCount, 'domain.total', '0') || 0 }