在集群中可以设置自动加入DNS的CNAME记录

This commit is contained in:
刘祥超
2021-09-20 16:37:41 +08:00
parent a19c4dffcd
commit f6f8c5c858
10 changed files with 65 additions and 1 deletions

View File

@@ -26,6 +26,13 @@
<p class="comment">当前集群的子域名,和主域名一起组成集群节点的子域名。</p>
</td>
</tr>
<tr>
<td>自动设置CNAME记录</td>
<td>
<values-box :values="cnameRecords" name="cnameRecords" placeholder="记录名" ref="cnameRecords"></values-box>
<p class="comment">除了集群节点记录之外自动加入的CNAME记录比如<code-label @click.prevent="addCnameRecord('@')">@</code-label><code-label @click.prevent="addCnameRecord('www')">www</code-label></p>
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
</tr>

View File

@@ -6,4 +6,8 @@ Tea.context(function () {
this.domain.id = domain.id
this.domain.name = domain.name
}
this.addCnameRecord = function (name) {
this.$refs.cnameRecords.addValue(name)
}
})