mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-04 01:56:35 +08:00
WAF看板最新拦截记录增加区域信息
This commit is contained in:
@@ -161,9 +161,17 @@ Tea.context(function () {
|
||||
this.$post(".wafLogs")
|
||||
.success(function (resp) {
|
||||
if (resp.data.accessLogs != null) {
|
||||
let regions = resp.data.regions
|
||||
|
||||
let that = this
|
||||
resp.data.accessLogs.forEach(function (v) {
|
||||
that.formatTime(v)
|
||||
resp.data.accessLogs.forEach(function (accessLog) {
|
||||
that.formatTime(accessLog)
|
||||
|
||||
if (typeof (regions[accessLog.remoteAddr]) == "string") {
|
||||
accessLog.region = regions[accessLog.remoteAddr]
|
||||
} else {
|
||||
accessLog.region = ""
|
||||
}
|
||||
})
|
||||
this.accessLogs = resp.data.accessLogs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user