优化异常信息获取逻辑.

This commit is contained in:
lijiahangmax
2024-08-24 19:59:45 +08:00
parent 1fca5a1912
commit 924b46b41a
18 changed files with 106 additions and 68 deletions

View File

@@ -43,9 +43,9 @@
:disabled="SshAuthType.IDENTITY === formModel.authType"
placeholder="请输入用户名" />
</a-form-item>
<!-- 证方式 -->
<!-- 证方式 -->
<a-form-item field="authType"
label="证方式"
label="证方式"
:hide-asterisk="true">
<a-radio-group type="button"
class="auth-type-group usn"
@@ -165,7 +165,7 @@
formModel.value.useNewPassword = !formModel.value.hasPassword;
});
// 用户名
// 用户名
const usernameRules = [{
validator: (value, cb) => {
if (value && value.length > 128) {
@@ -179,7 +179,7 @@
}
}] as FieldRule[];
// 密码
// 密码
const passwordRules = [{
validator: (value, cb) => {
if (value && value.length > 256) {

View File

@@ -14,17 +14,17 @@ export interface HostSshConfig {
hasPassword?: boolean;
}
// 主机证方式
// 主机证方式
export const SshAuthType = {
// 密码
// 密码
PASSWORD: 'PASSWORD',
// 密钥
// 密钥
KEY: 'KEY',
// 身份
// 身份
IDENTITY: 'IDENTITY'
};
// 主机证方式 字典项
// 主机证方式 字典项
export const sshAuthTypeKey = 'hostSshAuthType';
// 主机系统类型 字典项

View File

@@ -127,7 +127,7 @@
defineExpose({ openAdd, openUpdate });
// 密码
// 密码
const passwordRules = [{
validator: (value, cb) => {
if (value && value.length > 512) {

View File

@@ -163,7 +163,7 @@
defineExpose({ openAdd, openUpdate, openView });
// 密码
// 密码
const passwordRules = [{
validator: (value, cb) => {
if (value && value.length > 512) {