From 869d0c73bdd39c0e7458a03f80d54345f270828e Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Fri, 31 May 2024 18:07:19 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=BB=A3?=
=?UTF-8?q?=E7=90=86=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=80=BC=20(#5242?=
=?UTF-8?q?)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/database/mysql/index.vue | 4 +++-
frontend/src/views/database/redis/index.vue | 3 ++-
frontend/src/views/database/redis/setting/index.vue | 8 ++++----
frontend/src/views/setting/panel/proxy/index.vue | 5 +++--
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue
index 7651b2d6d..44d78e0fd 100644
--- a/frontend/src/views/database/mysql/index.vue
+++ b/frontend/src/views/database/mysql/index.vue
@@ -215,7 +215,9 @@
v-if="mysqlStatus != 'Running' && currentDB && !loading && maskShow && currentDB?.from === 'local'"
class="mask-prompt"
>
- {{ $t('commons.service.serviceNotStarted', ['MySQL']) }}
+
+ {{ $t('commons.service.serviceNotStarted', [currentDB.type === 'mysql' ? 'MySQL' : 'Mariadb']) }}
+
diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue
index fb5ae7d59..3ea238010 100644
--- a/frontend/src/views/database/redis/index.vue
+++ b/frontend/src/views/database/redis/index.vue
@@ -363,7 +363,8 @@ const loadQuickCmd = async () => {
const quickInput = (val: any) => {
if (val) {
- terminalRef.value?.sendMsg(val + '\n');
+ terminalRef.value?.sendMsg(val);
+ quickCmd.value = '';
}
};
diff --git a/frontend/src/views/database/redis/setting/index.vue b/frontend/src/views/database/redis/setting/index.vue
index 8e0525341..de9172f01 100644
--- a/frontend/src/views/database/redis/setting/index.vue
+++ b/frontend/src/views/database/redis/setting/index.vue
@@ -1,6 +1,6 @@
-
+
{{ $t('database.confChange') }}
@@ -201,7 +201,7 @@ const changeTab = (val: string) => {
break;
case 'tuning':
case 'port':
- loadform();
+ loadForm();
break;
case 'status':
statusRef.value!.acceptParams({ status: redisStatus.value, database: database.value });
@@ -288,7 +288,7 @@ const submitForm = async () => {
loading.value = true;
await updateRedisConf(param)
.then(() => {
- loadform();
+ loadForm();
loading.value = false;
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
})
@@ -336,7 +336,7 @@ const submitFile = async () => {
});
};
-const loadform = async () => {
+const loadForm = async () => {
const res = await loadRedisConf(database.value);
form.name = res.data?.name;
form.timeout = Number(res.data?.timeout);
diff --git a/frontend/src/views/setting/panel/proxy/index.vue b/frontend/src/views/setting/panel/proxy/index.vue
index b06b4514b..5ac9a6ae5 100644
--- a/frontend/src/views/setting/panel/proxy/index.vue
+++ b/frontend/src/views/setting/panel/proxy/index.vue
@@ -25,6 +25,7 @@
+
@@ -105,8 +106,8 @@ interface DialogProps {
passwdKeep: string;
}
const acceptParams = (params: DialogProps): void => {
- form.proxyUrl = params.url || '127.0.0.1';
- form.proxyType = params.type || 'socks5';
+ form.proxyUrl = params.url;
+ form.proxyType = params.type;
form.proxyPortItem = params.port ? Number(params.port) : 7890;
form.proxyUser = params.user;
form.proxyPasswd = params.passwd;