mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-08 16:00:26 +08:00
优化集群选择DNS设置交互
This commit is contained in:
@@ -21,12 +21,14 @@ Vue.component("dns-domain-selector", {
|
||||
callback: function (resp) {
|
||||
that.domainId = resp.data.domainId
|
||||
that.domainName = resp.data.domainName
|
||||
that.change()
|
||||
}
|
||||
})
|
||||
},
|
||||
remove: function() {
|
||||
this.domainId = 0
|
||||
this.domainName = ""
|
||||
this.change()
|
||||
},
|
||||
update: function () {
|
||||
let that = this
|
||||
@@ -34,8 +36,15 @@ Vue.component("dns-domain-selector", {
|
||||
callback: function (resp) {
|
||||
that.domainId = resp.data.domainId
|
||||
that.domainName = resp.data.domainName
|
||||
that.change()
|
||||
}
|
||||
})
|
||||
},
|
||||
change: function () {
|
||||
this.$emit("change", {
|
||||
id: this.domainId,
|
||||
name: this.domainName
|
||||
})
|
||||
}
|
||||
},
|
||||
template: `<div>
|
||||
|
||||
Reference in New Issue
Block a user