From 0d687daa13cd240fd04317d648426a52eac880e2 Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Sat, 12 Aug 2023 22:36:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E?=
=?UTF-8?q?=E6=8E=A5=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0=E5=A4=8D=E5=88=B6?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E4=BB=A5=E5=8F=8A=E8=B6=85=E9=95=BF=E6=82=AC?=
=?UTF-8?q?=E6=B5=AE=E6=98=BE=E7=A4=BA=20(#1935)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/database/mysql/conn/index.vue | 32 +++++++-
.../src/views/database/mysql/remote/index.vue | 8 +-
go.mod | 32 +-------
go.sum | 74 -------------------
4 files changed, 35 insertions(+), 111 deletions(-)
diff --git a/frontend/src/views/database/mysql/conn/index.vue b/frontend/src/views/database/mysql/conn/index.vue
index 368a738d4..def3acea3 100644
--- a/frontend/src/views/database/mysql/conn/index.vue
+++ b/frontend/src/views/database/mysql/conn/index.vue
@@ -16,7 +16,15 @@
- {{ form.systemIP + ':' + form.port }}
+
+ {{ loadConnInfo(true).substring(0, 48) }}...
+
+ {{ loadConnInfo(true) }}
+
{{ $t('database.remoteConnHelper2') }}
@@ -42,13 +50,27 @@
- {{ form.remoteIP + ':' + form.port }}
+
+ {{ loadConnInfo(false).substring(0, 48) }}...
+
+ {{ loadConnInfo(false) }}
+
{{ form.username }}
+
{{ form.password }}
+
@@ -121,6 +143,12 @@ const acceptParams = (param: DialogProps): void => {
dialogVisiable.value = true;
};
+function loadConnInfo(isLocal: boolean) {
+ let ip = isLocal ? form.systemIP : form.remoteIP;
+ let info = ip + ':' + form.port;
+ return info;
+}
+
const random = async () => {
form.password = getRandomStr(16);
};
diff --git a/frontend/src/views/database/mysql/remote/index.vue b/frontend/src/views/database/mysql/remote/index.vue
index b65dec4b5..861cf6af9 100644
--- a/frontend/src/views/database/mysql/remote/index.vue
+++ b/frontend/src/views/database/mysql/remote/index.vue
@@ -28,8 +28,8 @@
-
-
+
+
@@ -74,7 +74,7 @@
show-overflow-tooltip
/>