diff --git a/web/public/js/components.js b/web/public/js/components.js
index d1fce1ba..99b18d17 100644
--- a/web/public/js/components.js
+++ b/web/public/js/components.js
@@ -2585,7 +2585,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-`}),Vue.component("http-access-log-box",{props:["v-access-log","v-keyword","v-show-server-link"],data:function(){let e=this.vAccessLog;return null!=e.header&&null!=e.header.Upgrade&&null!=e.header.Upgrade.values&&e.header.Upgrade.values.$contains("websocket")&&("http"==e.scheme?e.scheme="ws":"https"==e.scheme&&(e.scheme="wss")),{accessLog:e}},methods:{formatCost:function(e){if(null==e)return"0";let t=(1e3*e).toString(),i=t.split(".");return i.length<2?t:i[0]+"."+i[1].substring(0,3)},showLog:function(){let e=this;var t=this.accessLog.requestId;this.$parent.$children.forEach(function(e){null!=e.deselect&&e.deselect()}),this.select(),teaweb.popup("/servers/server/log/viewPopup?requestId="+t,{width:"50em",height:"28em",onClose:function(){e.deselect()}})},select:function(){this.$refs.box.parentNode.style.cssText="background: rgba(0, 0, 0, 0.1)"},deselect:function(){this.$refs.box.parentNode.style.cssText=""}},template:`
+
`}),Vue.component("http-access-log-box",{props:["v-access-log","v-keyword","v-show-server-link"],data:function(){let e=this.vAccessLog;if(null!=e.header&&null!=e.header.Upgrade&&null!=e.header.Upgrade.values&&e.header.Upgrade.values.$contains("websocket")&&("http"==e.scheme?e.scheme="ws":"https"==e.scheme&&(e.scheme="wss")),null!=e.tags&&0
[{{accessLog.node.name}}节点]
[服务]
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index 46d5b3b4..53f36341 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -7612,6 +7612,16 @@ Vue.component("http-access-log-box", {
}
}
+ // 对TAG去重
+ if (accessLog.tags != null && accessLog.tags.length > 0) {
+ let tagMap = {}
+ accessLog.tags = accessLog.tags.$filter(function (k, tag) {
+ let b = (typeof (tagMap[tag]) == "undefined")
+ tagMap[tag] = true
+ return b
+ })
+ }
+
return {
accessLog: accessLog
}
diff --git a/web/public/js/components/server/http-access-log-box.js b/web/public/js/components/server/http-access-log-box.js
index bf2140c9..79a5ffbc 100644
--- a/web/public/js/components/server/http-access-log-box.js
+++ b/web/public/js/components/server/http-access-log-box.js
@@ -10,6 +10,16 @@ Vue.component("http-access-log-box", {
}
}
+ // 对TAG去重
+ if (accessLog.tags != null && accessLog.tags.length > 0) {
+ let tagMap = {}
+ accessLog.tags = accessLog.tags.$filter(function (k, tag) {
+ let b = (typeof (tagMap[tag]) == "undefined")
+ tagMap[tag] = true
+ return b
+ })
+ }
+
return {
accessLog: accessLog
}