mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-02 09:06:37 +08:00
修复在自动安装过程中不能填写SSH认证用户名的Bug
This commit is contained in:
5
web/views/@default/clusters/cluster/updateNodeSSH.js
Normal file
5
web/views/@default/clusters/cluster/updateNodeSSH.js
Normal file
@@ -0,0 +1,5 @@
|
||||
Tea.context(function () {
|
||||
if (this.params.port <= 0) {
|
||||
this.params.port = 22
|
||||
}
|
||||
})
|
||||
@@ -37,6 +37,13 @@
|
||||
|
||||
<!-- 私钥 -->
|
||||
<tbody v-if="method == 'privateKey'">
|
||||
<tr>
|
||||
<td>SSH用户名 *</td>
|
||||
<td>
|
||||
<input type="text" name="username" maxlength="100"/>
|
||||
<p class="comment">SSH登录用户名。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RSA私钥 *</td>
|
||||
<td>
|
||||
|
||||
@@ -39,6 +39,13 @@
|
||||
|
||||
<!-- 私钥 -->
|
||||
<tbody v-if="method == 'privateKey'">
|
||||
<tr>
|
||||
<td>SSH用户名 *</td>
|
||||
<td>
|
||||
<input type="text" name="username" maxlength="100" v-model="grant.username"/>
|
||||
<p class="comment">SSH登录用户名。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>RSA私钥 *</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user