多个API节点时选择一个作为主节点

This commit is contained in:
刘祥超
2022-04-23 12:32:13 +08:00
parent 492d24f28a
commit 2487c69136
6 changed files with 44 additions and 22 deletions

View File

@@ -22,7 +22,9 @@
</tr>
</thead>
<tr v-for="node in nodes">
<td><a :href="'/api/node?nodeId=' + node.id">{{node.name}}</a></td>
<td><a :href="'/api/node?nodeId=' + node.id">{{node.name}}</a>
<grey-label v-if="node.isPrimary">主节点</grey-label>
</td>
<td>
<div v-if="node.accessAddrs != null && node.accessAddrs.length > 0">
<div v-for="addr in node.accessAddrs">