{{ $t('app.checkInstalledWarn', [dashboardName]) }}
@@ -509,7 +503,7 @@ const loadDBOptions = async () => {
}
}
if (currentDB.value) {
- if (currentDB.value.from === 'remote') {
+ if (currentDB.value?.from === 'remote') {
maskShow.value = false;
}
globalStore.setCurrentDB('');
@@ -529,7 +523,7 @@ const loadDBOptions = async () => {
if (currentDB.value) {
search();
}
- if (currentDB.value.from === 'remote') {
+ if (currentDB.value?.from === 'remote') {
maskShow.value = false;
}
};
diff --git a/frontend/src/views/database/postgresql/index.vue b/frontend/src/views/database/postgresql/index.vue
index 31a754604..e72a8a141 100644
--- a/frontend/src/views/database/postgresql/index.vue
+++ b/frontend/src/views/database/postgresql/index.vue
@@ -78,8 +78,9 @@
-
+
+
+
+
{{ $t('app.checkInstalledWarn', [$t('database.noPostgresql')]) }}
+
+
+ {{ $t('database.goInstall') }}
+
+
+
+

+
+
@@ -181,25 +194,6 @@
{{ $t('commons.service.serviceNotStarted', ['PostgreSQL']) }}
-
-
-
-
-
-
{{ $t('app.checkInstalledWarn', [$t('database.noPostgresql')]) }}
-
-
- {{ $t('database.goInstall') }}
-
-
-
-

-
-
-
-
-
-
{{ $t('app.checkInstalledWarn', [dashboardName]) }}
@@ -468,7 +462,7 @@ const loadDBOptions = async () => {
}
}
if (currentDB.value) {
- if (currentDB.value.from === 'remote') {
+ if (currentDB.value?.from === 'remote') {
maskShow.value = false;
}
globalStore.setCurrentDB('');
@@ -488,7 +482,7 @@ const loadDBOptions = async () => {
if (currentDB.value) {
search();
}
- if (currentDB.value.from === 'remote') {
+ if (currentDB.value?.from === 'remote') {
maskShow.value = false;
}
};
diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue
index b2d0c7644..9da951175 100644
--- a/frontend/src/views/database/redis/index.vue
+++ b/frontend/src/views/database/redis/index.vue
@@ -95,23 +95,17 @@
-