mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-16 05:30:27 +08:00
可以修复单页或者全部服务日志
This commit is contained in:
@@ -46,41 +46,4 @@ Tea.context(function () {
|
||||
this.showLatest = function () {
|
||||
this.latestVisible = !this.latestVisible
|
||||
}
|
||||
|
||||
/**
|
||||
* 错误日志相关
|
||||
*/
|
||||
this.fixLog = function (logId) {
|
||||
let that = this
|
||||
teaweb.confirm("确定要关闭此错误提示吗?", function () {
|
||||
that.$post(".fixLog")
|
||||
.params({
|
||||
logIds: logId
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
this.fixPageLogs = function () {
|
||||
let logIds = this.errorLogs.map(function (v) {
|
||||
return v.id
|
||||
})
|
||||
if (logIds.length == 0) {
|
||||
teaweb.reload()
|
||||
return
|
||||
}
|
||||
|
||||
let that = this
|
||||
teaweb.confirm("确定要关闭此页错误提示吗?", function () {
|
||||
that.$post(".fixLog")
|
||||
.params({
|
||||
logIds: logIds
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user