集群DNS子域名可以随机生成

This commit is contained in:
刘祥超
2022-04-18 18:19:30 +08:00
parent 6afecb5708
commit caf9eeae2e
4 changed files with 28 additions and 3 deletions

View File

@@ -10,4 +10,11 @@ Tea.context(function () {
this.addCnameRecord = function (name) {
this.$refs.cnameRecords.addValue(name)
}
this.generateRandName = function () {
this.$post(".randomName")
.success(function (resp) {
this.dnsName = resp.data.name
})
}
})