From 9e8b3e9d643f6444bbc6a57a20967c6538c371b0 Mon Sep 17 00:00:00 2001
From: chenjinsong <523037378@qq.com>
Date: Mon, 29 Jan 2024 14:17:36 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20vpn=E7=B1=BB=E7=9A=84tag=E9=83=BD?=
=?UTF-8?q?=E6=A0=87=E4=BD=8D=E7=BA=A2=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/constants.js | 4 ++--
src/utils/tools.js | 2 +-
src/views/entityExplorer/EntityExplorer.vue | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 46849186..86d37711 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -2625,7 +2625,7 @@ export const entityDetailTags = {
},
{
name: 'vpnServiceName',
- type: 'normal'
+ type: 'negative'
}
],
ip: [
@@ -2651,7 +2651,7 @@ export const entityDetailTags = {
},
{
name: 'vpnServiceName',
- type: 'normal'
+ type: 'negative'
}
],
app: [
diff --git a/src/utils/tools.js b/src/utils/tools.js
index 968f3eb7..979d6298 100644
--- a/src/utils/tools.js
+++ b/src/utils/tools.js
@@ -1502,7 +1502,7 @@ export const formatTags = (data, type, list) => {
if (k !== 'userDefinedTags' && data[k]) {
if (_.isArray(data[k])) {
data[k].forEach(k3 => {
- const find = entityDetailTags[type].find(t => t.name === k3.vpnServiceName)
+ const find = entityDetailTags[type].find(t => t.name === 'vpnServiceName')
if (find) {
list.push({ key: 'vpnServiceName', value: tagValueHandler(k3.vpnServiceName), type: find.type })
} else {
diff --git a/src/views/entityExplorer/EntityExplorer.vue b/src/views/entityExplorer/EntityExplorer.vue
index cfae1c83..7269b279 100644
--- a/src/views/entityExplorer/EntityExplorer.vue
+++ b/src/views/entityExplorer/EntityExplorer.vue
@@ -49,7 +49,7 @@
{{ summaryCount.appCount }}
-
+
@@ -60,7 +60,7 @@
{{ $t('entity.entityMode') }}
{{ $t('entity.relatedMode') }}
-
+
@@ -614,9 +614,9 @@ export default {
this.listData = []
this.$nextTick(() => {
this.listData = response.data.data.list
- if (this.listData.length === 0) {
+ /*if (this.listData.length === 0) {
this.isHideRelatedEntities = false
- }
+ }*/
})
} else {
this.$message.error(response.data.message)