mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-02 09:50:24 +08:00
节点IP地址可以设置专属集群
This commit is contained in:
@@ -4,5 +4,15 @@ Tea.context(function () {
|
||||
this.address = window.parent.UPDATING_NODE_IP_ADDRESS
|
||||
if (this.address != null) {
|
||||
this.address.isUp = (this.address.isUp ? 1 : 0)
|
||||
|
||||
// 专属集群
|
||||
if (this.address.clusters != null) {
|
||||
let selectedClusterIds = this.address.clusters.map(function (cluster) {
|
||||
return cluster.id
|
||||
})
|
||||
this.clusters.forEach(function (cluster) {
|
||||
cluster.isChecked = selectedClusterIds.$contains(cluster.id)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user