2020-10-11 10:51:13 +08:00
|
|
|
{$layout}
|
2020-10-11 16:20:55 +08:00
|
|
|
{$template "menu"}
|
2020-10-11 10:51:13 +08:00
|
|
|
|
2020-10-11 16:20:55 +08:00
|
|
|
<p class="ui message error" v-if="error.length > 0">{{error}}</p>
|
|
|
|
|
<div v-show="error.length == 0 && dbConfig != null">
|
|
|
|
|
<table class="ui table selectable definition">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="title">主机地址</td>
|
|
|
|
|
<td>{{dbConfig.host}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>数据库端口</td>
|
|
|
|
|
<td>{{dbConfig.port}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>数据库名称</td>
|
|
|
|
|
<td>{{dbConfig.database}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>用户名</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span v-if="dbConfig.username.length > 0">{{dbConfig.username}}</span>
|
|
|
|
|
<span v-else class="disabled">不使用用户名。</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>密码</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span v-if="dbConfig.password.length > 0">{{dbConfig.password}}</span>
|
|
|
|
|
<span v-else class="disabled">不使用密码。</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="ui message tiny">
|
|
|
|
|
<p>在这里可以设置API节点可以使用的数据库。</p>
|
|
|
|
|
</div>
|