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;