优化数据库节点管理

This commit is contained in:
GoEdgeLab
2021-08-30 10:56:03 +08:00
parent 015b7d995b
commit 0f94c16236
22 changed files with 397 additions and 47 deletions

View File

@@ -0,0 +1,16 @@
Tea.context(function () {
this.$delay(function () {
this.loadStatus(this.node.id)
})
this.status = null
this.loadStatus = function (nodeId) {
this.$post(".status")
.params({
nodeId: nodeId
})
.success(function (resp) {
this.status = resp.data.status
})
}
})