mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 07:10:27 +08:00
实现HTTP部分功能
This commit is contained in:
@@ -38,11 +38,21 @@ Tea.context(function () {
|
||||
*/
|
||||
this.checkClusterChanges = function () {
|
||||
this.$get("/common/changedClusters")
|
||||
.params({
|
||||
isNotifying: (this.globalChangedClusters.length > 0) ? 1 : 0
|
||||
})
|
||||
.timeout(60)
|
||||
.success(function (resp) {
|
||||
this.globalChangedClusters = resp.data.clusters;
|
||||
}).fail(function () {
|
||||
this.globalChangedClusters = [];
|
||||
})
|
||||
})
|
||||
.fail(function () {
|
||||
this.globalChangedClusters = [];
|
||||
})
|
||||
.done(function () {
|
||||
this.$delay(function () {
|
||||
this.checkClusterChanges()
|
||||
}, 3000)
|
||||
})
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user