fix: 网元主机ssh私钥长度3000限制

This commit is contained in:
TsMask
2024-05-11 16:41:51 +08:00
parent 7560f21f11
commit c8a0d4c3f7
2 changed files with 6 additions and 4 deletions

View File

@@ -287,7 +287,7 @@ const modalStateFrom = Form.useForm(
{
required: true,
min: 1,
max: 128,
max: 3000,
message: t('views.ne.neHost.privateKeyPlease'),
},
],
@@ -414,7 +414,8 @@ function fnModalTest() {
const validateArr = ['title', 'addr', 'port', 'user'];
if (form.authMode === '0') {
validateArr.push('password');
} else {
}
if (form.authMode === '1') {
validateArr.push('privateKey');
}
modalStateFrom
@@ -710,6 +711,7 @@ onMounted(() => {
:min="10"
:max="65535"
:step="1"
:maxlength="5"
style="width: 100%"
></a-input-number>
</a-form-item>
@@ -726,7 +728,7 @@ onMounted(() => {
<a-input
v-model:value="modalState.from.user"
allow-clear
:maxlength="50"
:maxlength="32"
:placeholder="t('common.inputPlease')"
>
</a-input>

View File

@@ -98,7 +98,7 @@ const checkStateFrom = Form.useForm(
{
required: true,
min: 1,
max: 128,
max: 3000,
message: t('views.ne.neHost.privateKeyPlease'),
},
],