From 16fd804e93f33005d8aa90b43c80ec04ebc9b36c Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Thu, 17 Oct 2024 18:05:32 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E5=BA=93=E5=88=87=E6=8D=A2=E6=95=88=E6=9E=9C=20(#6757)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Refs #6755
---
frontend/src/components/app-status/index.vue | 21 +++++--------------
frontend/src/views/database/mysql/index.vue | 4 ++++
.../src/views/database/postgresql/index.vue | 3 +++
frontend/src/views/database/redis/index.vue | 3 +++
4 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue
index e4e9e3d65..b00ca3399 100644
--- a/frontend/src/components/app-status/index.vue
+++ b/frontend/src/components/app-status/index.vue
@@ -107,7 +107,7 @@
diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue
index 656236837..6fdd159ff 100644
--- a/frontend/src/views/database/mysql/index.vue
+++ b/frontend/src/views/database/mysql/index.vue
@@ -21,6 +21,7 @@
v-model:mask-show="maskShow"
@setting="onSetting"
@is-exist="checkExist"
+ ref="appStatusRef"
>
@@ -327,6 +328,8 @@ const dashboardName = ref();
const dashboardKey = ref();
const dashboardVisible = ref(false);
+const appStatusRef = ref();
+
const dialogPortJumpRef = ref();
const data = ref();
@@ -384,6 +387,7 @@ const onSetting = async () => {
};
const changeDatabase = async () => {
+ 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 4fb1b0998..e8f5517e8 100644
--- a/frontend/src/views/database/postgresql/index.vue
+++ b/frontend/src/views/database/postgresql/index.vue
@@ -19,6 +19,7 @@
v-model:mask-show="maskShow"
@setting="onSetting"
@is-exist="checkExist"
+ ref="appStatusRef"
>
@@ -305,6 +306,7 @@ const postgresqlContainer = ref();
const postgresqlStatus = ref();
const postgresqlVersion = ref();
+const appStatusRef = ref();
const dialogRef = ref();
const onOpenDialog = async () => {
let params = {
@@ -348,6 +350,7 @@ const onSetting = async () => {
};
const changeDatabase = async () => {
+ 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 a2d3f8b12..80808bfc0 100644
--- a/frontend/src/views/database/redis/index.vue
+++ b/frontend/src/views/database/redis/index.vue
@@ -19,6 +19,7 @@
@before="onBefore"
@after="onAfter"
@setting="onSetting"
+ ref="appStatusRef"
>
@@ -164,6 +165,7 @@ const redisIsExist = ref(false);
const redisStatus = ref();
const terminalShow = ref(false);
+const appStatusRef = ref();
const commandVisible = ref(false);
const redisCliExist = ref();
@@ -220,6 +222,7 @@ const goRouter = async (target: string) => {
};
const changeDatabase = async () => {
+ appStatusRef.value.onCheck();
for (const item of dbOptionsLocal.value) {
if (item.database == currentDBName.value) {
currentDB.value = item;