Browse Source

fix: 解决远程数据库无法切换的问题 (#6893)

Refs #6883
pull/6905/head
ssongliu 3 weeks ago committed by GitHub
parent
commit
784b8da7af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      frontend/src/views/database/mysql/index.vue
  2. 2
      frontend/src/views/database/postgresql/index.vue
  3. 2
      frontend/src/views/database/redis/index.vue

2
frontend/src/views/database/mysql/index.vue

@ -387,7 +387,9 @@ const onSetting = async () => {
};
const changeDatabase = async () => {
if (currentDB.value.from === 'local') {
appStatusRef.value.onCheck();
}
for (const item of dbOptionsLocal.value) {
if (item.database == currentDBName.value) {
currentDB.value = item;

2
frontend/src/views/database/postgresql/index.vue

@ -350,7 +350,9 @@ const onSetting = async () => {
};
const changeDatabase = async () => {
if (currentDB.value.from === 'local') {
appStatusRef.value.onCheck();
}
for (const item of dbOptionsLocal.value) {
if (item.database == currentDBName.value) {
currentDB.value = item;

2
frontend/src/views/database/redis/index.vue

@ -222,7 +222,9 @@ const goRouter = async (target: string) => {
};
const changeDatabase = async () => {
if (currentDB.value.from === 'local') {
appStatusRef.value.onCheck();
}
for (const item of dbOptionsLocal.value) {
if (item.database == currentDBName.value) {
currentDB.value = item;

Loading…
Cancel
Save