配置更新时立即向集群节点发消息

This commit is contained in:
刘祥超
2020-10-09 12:03:32 +08:00
parent 37130d2e23
commit 6a3374e5ff
13 changed files with 36 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ Tea.context(function () {
* 检查集群变更
*/
this.checkClusterChanges = function () {
this.$get("/common/changedClusters")
this.$post("/clusters/checkChange")
.params({
isNotifying: (this.globalChangedClusters.length > 0) ? 1 : 0
})
@@ -64,7 +64,7 @@ Tea.context(function () {
*/
this.syncClustersConfigs = function () {
teaweb.confirm("确定要同步集群服务配置吗?", function () {
this.$post("/common/syncClusters")
this.$post("/clusters/sync")
.success(function () {
this.globalChangedClusters = [];
})