From bce1995969eec092212a8fc393f576646668c4e4 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Mon, 13 Feb 2023 17:28:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20redis-command=E3=80=81phpmyadmin=20?= =?UTF-8?q?=E6=9C=AA=E5=AE=89=E8=A3=85=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/cronjob/operate/index.vue | 2 +- frontend/src/views/database/mysql/backup/index.vue | 2 +- frontend/src/views/database/mysql/index.vue | 9 ++++----- frontend/src/views/database/redis/index.vue | 9 ++++----- frontend/src/views/setting/snapshot/import/index.vue | 2 +- frontend/src/views/setting/snapshot/index.vue | 2 +- frontend/src/views/website/website/backup/index.vue | 2 +- 7 files changed, 13 insertions(+), 15 deletions(-) diff --git a/frontend/src/views/cronjob/operate/index.vue b/frontend/src/views/cronjob/operate/index.vue index f6bf5b71b..f7bf8b671 100644 --- a/frontend/src/views/cronjob/operate/index.vue +++ b/frontend/src/views/cronjob/operate/index.vue @@ -162,7 +162,7 @@ import { reactive, ref } from 'vue'; import { Rules } from '@/global/form-rules'; import { loadBackupName } from '@/views/setting/helper'; import FileList from '@/components/file-list/index.vue'; -import { getBackupList } from '@/api/modules/backup'; +import { getBackupList } from '@/api/modules/setting'; import i18n from '@/lang'; import { ElForm, ElMessage } from 'element-plus'; import { Cronjob } from '@/api/interface/cronjob'; diff --git a/frontend/src/views/database/mysql/backup/index.vue b/frontend/src/views/database/mysql/backup/index.vue index 30646c498..bf4f05e06 100644 --- a/frontend/src/views/database/mysql/backup/index.vue +++ b/frontend/src/views/database/mysql/backup/index.vue @@ -38,7 +38,7 @@ import { backup, recover } from '@/api/modules/database'; import i18n from '@/lang'; import { ElMessage } from 'element-plus'; import DrawerHeader from '@/components/drawer-header/index.vue'; -import { deleteBackupRecord, downloadBackupRecord, searchBackupRecords } from '@/api/modules/backup'; +import { deleteBackupRecord, downloadBackupRecord, searchBackupRecords } from '@/api/modules/setting'; import { Backup } from '@/api/interface/backup'; const selects = ref([]); diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue index 27972abae..6ba36f36a 100644 --- a/frontend/src/views/database/mysql/index.vue +++ b/frontend/src/views/database/mysql/index.vue @@ -124,7 +124,7 @@ :destroy-on-close="true" > - + {{ $t('database.goInstall') }} @@ -258,10 +258,6 @@ const onChange = async (info: any) => { } }; -const goRouter = async (path: string) => { - router.push({ path: path }); -}; - const goDashboard = async () => { if (phpadminPort.value === 0) { phpVisiable.value = true; @@ -271,6 +267,9 @@ const goDashboard = async () => { let ipLocal = href.split('//')[1].split(':')[0]; window.open(`http://${ipLocal}:${phpadminPort.value}`, '_blank'); }; +const getAppDetail = (key: string) => { + router.push({ name: 'AppDetail', params: { appKey: key } }); +}; const loadDashboardPort = async () => { const res = await GetAppPort('phpmyadmin'); diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue index c8ca6484d..467cde2b6 100644 --- a/frontend/src/views/database/redis/index.vue +++ b/frontend/src/views/database/redis/index.vue @@ -37,7 +37,7 @@ :destroy-on-close="true" > - + {{ $t('database.goInstall') }} @@ -81,10 +81,6 @@ const onSetting = async () => { settingRef.value!.acceptParams({ status: redisStatus.value, redisName: redisName.value }); }; -const goRouter = async (path: string) => { - router.push({ path: path }); -}; - const goDashboard = async () => { if (redisCommandPort.value === 0) { commandVisiable.value = true; @@ -94,6 +90,9 @@ const goDashboard = async () => { let ipLocal = href.split('//')[1].split(':')[0]; window.open(`http://${ipLocal}:${redisCommandPort.value}`, '_blank'); }; +const getAppDetail = (key: string) => { + router.push({ name: 'AppDetail', params: { appKey: key } }); +}; const loadDashboardPort = async () => { const res = await GetAppPort('redis-commander'); diff --git a/frontend/src/views/setting/snapshot/import/index.vue b/frontend/src/views/setting/snapshot/import/index.vue index d7be8c630..330b28d78 100644 --- a/frontend/src/views/setting/snapshot/import/index.vue +++ b/frontend/src/views/setting/snapshot/import/index.vue @@ -48,7 +48,7 @@ import { ElMessage, FormInstance } from 'element-plus'; import i18n from '@/lang'; import DrawerHeader from '@/components/drawer-header/index.vue'; import { snapshotImport } from '@/api/modules/setting'; -import { getBackupList, getFilesFromBackup } from '@/api/modules/backup'; +import { getBackupList, getFilesFromBackup } from '@/api/modules/setting'; import { loadBackupName } from '../../helper'; import { Rules } from '@/global/form-rules'; diff --git a/frontend/src/views/setting/snapshot/index.vue b/frontend/src/views/setting/snapshot/index.vue index d4f7a7d49..d75b78d7c 100644 --- a/frontend/src/views/setting/snapshot/index.vue +++ b/frontend/src/views/setting/snapshot/index.vue @@ -157,7 +157,7 @@ import { Setting } from '@/api/interface/setting'; import LayoutContent from '@/layout/layout-content.vue'; import RecoverStatus from '@/views/setting/snapshot/status/index.vue'; import SnapshotImport from '@/views/setting/snapshot/import/index.vue'; -import { getBackupList } from '@/api/modules/backup'; +import { getBackupList } from '@/api/modules/setting'; import { loadBackupName } from '../helper'; const loading = ref(false); diff --git a/frontend/src/views/website/website/backup/index.vue b/frontend/src/views/website/website/backup/index.vue index 0aa9edad7..b4c11f5cd 100644 --- a/frontend/src/views/website/website/backup/index.vue +++ b/frontend/src/views/website/website/backup/index.vue @@ -40,7 +40,7 @@ import { dateFormat } from '@/utils/util'; import { useDeleteData } from '@/hooks/use-delete-data'; import i18n from '@/lang'; import { ElMessage } from 'element-plus'; -import { deleteBackupRecord, downloadBackupRecord, searchBackupRecords } from '@/api/modules/backup'; +import { deleteBackupRecord, downloadBackupRecord, searchBackupRecords } from '@/api/modules/setting'; import { Backup } from '@/api/interface/backup'; import { BackupWebsite, RecoverWebsite } from '@/api/modules/website';