Files
EdgeAdmin/web/views/@default/clusters/cluster/settings/dns/index.js

20 lines
472 B
JavaScript
Raw Normal View History

Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功")
2021-08-25 11:55:06 +08:00
this.domain = {id: this.domainId, name: this.domainName}
this.changeDomain = function (domain) {
this.domain.id = domain.id
this.domain.name = domain.name
}
this.addCnameRecord = function (name) {
this.$refs.cnameRecords.addValue(name)
}
2022-04-18 18:19:30 +08:00
this.generateRandName = function () {
this.$post(".randomName")
.success(function (resp) {
this.dnsName = resp.data.name
})
}
})