增加置顶集群功能

This commit is contained in:
GoEdgeLab
2022-03-17 11:12:24 +08:00
parent a218417688
commit 48361fad32
8 changed files with 98 additions and 3 deletions

View File

@@ -4,4 +4,15 @@ Tea.context(function () {
this.showLatest = function () {
this.latestVisible = !this.latestVisible
}
this.pin = function (clusterId, isPinned) {
this.$post(".pin")
.params({
clusterId: clusterId,
isPinned: isPinned
})
.success(function () {
teaweb.reload()
})
}
})