mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 22:30:28 +08:00
优化代码
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user