mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-12 03:10:26 +08:00
集群列表页也增加“创建节点”链接
This commit is contained in:
13
web/views/@default/clusters/createNode.js
Normal file
13
web/views/@default/clusters/createNode.js
Normal file
@@ -0,0 +1,13 @@
|
||||
Tea.context(function () {
|
||||
this.clusterId = 0
|
||||
|
||||
this.changeCluster = function(clusterId) {
|
||||
this.clusterId = clusterId
|
||||
}
|
||||
|
||||
this.goNext = function () {
|
||||
if (this.clusterId > 0) {
|
||||
window.location = "/clusters/cluster/createNode?clusterId=" + this.clusterId
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user