mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
21 lines
533 B
JavaScript
21 lines
533 B
JavaScript
Tea.context(function () {
|
|
this.success = NotifyReloadSuccess("保存成功")
|
|
|
|
this.domain = {id: this.domainId, name: this.domainName}
|
|
this.oldDomain = {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)
|
|
}
|
|
|
|
this.generateRandName = function () {
|
|
this.$post(".randomName")
|
|
.success(function (resp) {
|
|
this.dnsName = resp.data.name
|
|
})
|
|
}
|
|
}) |