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;