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