From c2bb422b66c5881bf68ae434bf8559e222a22ce5 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:14:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=A0=E6=B3=95=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#6893)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #6883 --- frontend/src/views/database/mysql/index.vue | 4 +++- frontend/src/views/database/postgresql/index.vue | 4 +++- frontend/src/views/database/redis/index.vue | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue index 6fdd159ff..0f47a67df 100644 --- a/frontend/src/views/database/mysql/index.vue +++ b/frontend/src/views/database/mysql/index.vue @@ -387,7 +387,9 @@ const onSetting = async () => { }; const changeDatabase = async () => { - appStatusRef.value.onCheck(); + if (currentDB.value.from === 'local') { + appStatusRef.value.onCheck(); + } for (const item of dbOptionsLocal.value) { if (item.database == currentDBName.value) { currentDB.value = item; diff --git a/frontend/src/views/database/postgresql/index.vue b/frontend/src/views/database/postgresql/index.vue index e8f5517e8..28aeb014a 100644 --- a/frontend/src/views/database/postgresql/index.vue +++ b/frontend/src/views/database/postgresql/index.vue @@ -350,7 +350,9 @@ const onSetting = async () => { }; const changeDatabase = async () => { - appStatusRef.value.onCheck(); + if (currentDB.value.from === 'local') { + appStatusRef.value.onCheck(); + } for (const item of dbOptionsLocal.value) { if (item.database == currentDBName.value) { currentDB.value = item; diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue index 80808bfc0..342efc99f 100644 --- a/frontend/src/views/database/redis/index.vue +++ b/frontend/src/views/database/redis/index.vue @@ -222,7 +222,9 @@ const goRouter = async (target: string) => { }; const changeDatabase = async () => { - appStatusRef.value.onCheck(); + if (currentDB.value.from === 'local') { + appStatusRef.value.onCheck(); + } for (const item of dbOptionsLocal.value) { if (item.database == currentDBName.value) { currentDB.value = item;