可以修复单页或者全部服务日志

This commit is contained in:
GoEdgeLab
2022-03-23 17:31:53 +08:00
parent 3d45db8f3e
commit ee24baf7d6
11 changed files with 144 additions and 138 deletions

View File

@@ -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()
})
})
}
})