diff --git a/frontend/src/views/database/mysql/remote/operate/index.vue b/frontend/src/views/database/mysql/remote/operate/index.vue index f77f38e1f..62d7e8ebd 100644 --- a/frontend/src/views/database/mysql/remote/operate/index.vue +++ b/frontend/src/views/database/mysql/remote/operate/index.vue @@ -124,7 +124,7 @@ const rules = reactive({ name: [Rules.requiredInput], type: [Rules.requiredSelect], version: [Rules.requiredSelect], - address: [Rules.host], + address: [Rules.ipV4V6OrDomain], port: [Rules.port], username: [Rules.requiredInput], password: [Rules.requiredInput], diff --git a/frontend/src/views/host/terminal/host/operate/index.vue b/frontend/src/views/host/terminal/host/operate/index.vue index 260ac99e4..e152656c4 100644 --- a/frontend/src/views/host/terminal/host/operate/index.vue +++ b/frontend/src/views/host/terminal/host/operate/index.vue @@ -135,7 +135,7 @@ type FormInstance = InstanceType; const hostInfoRef = ref(); const rules = reactive({ groupID: [Rules.requiredSelect], - addr: [Rules.host], + addr: [Rules.ipV4V6OrDomain], port: [Rules.requiredInput, Rules.port], user: [Rules.requiredInput], authMode: [Rules.requiredSelect], diff --git a/frontend/src/views/host/terminal/terminal/host-create.vue b/frontend/src/views/host/terminal/terminal/host-create.vue index 9c7869976..7d6d22f35 100644 --- a/frontend/src/views/host/terminal/terminal/host-create.vue +++ b/frontend/src/views/host/terminal/terminal/host-create.vue @@ -116,7 +116,7 @@ watch( ); const rules = reactive({ - addr: [Rules.host], + addr: [Rules.ipV4V6OrDomain], port: [Rules.requiredInput, Rules.port], user: [Rules.requiredInput], authMode: [Rules.requiredSelect],