From 44b5a8d6bfda4fbb25443f0895b1532fb73090c2 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:17:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=88=E7=AB=AF=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=A0=A1=E9=AA=8C=E6=94=AF=E6=8C=81=20ipv6?= =?UTF-8?q?=20(#2643)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2526 --- frontend/src/views/database/mysql/remote/operate/index.vue | 2 +- frontend/src/views/host/terminal/host/operate/index.vue | 2 +- frontend/src/views/host/terminal/terminal/host-create.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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],