mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-26 12:16:39 +08:00
24 lines
411 B
JavaScript
24 lines
411 B
JavaScript
Tea.context(function () {
|
|
this.updateRead = function (logId) {
|
|
this.$post(".readEvents")
|
|
.params({
|
|
logIds: [logId]
|
|
})
|
|
.success(function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
|
|
this.updatePageRead = function () {
|
|
let logIds = this.logs.map(function (v) {
|
|
return v.id
|
|
})
|
|
this.$post(".readEvents")
|
|
.params({
|
|
logIds: logIds
|
|
})
|
|
.success(function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
}) |