From 487b0d343c97e9b5e336c06739c940d6548f3bd9 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 23 Aug 2024 17:08:58 +0800 Subject: [PATCH] fix: correct API endpoints related to backup issues (#6506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area ui /kind bug /milestone 2.19.x #### What this PR does / why we need it: 修复备份相关的 API 接口地址错误的问题,此问题由 https://github.com/halo-dev/halo/pull/6486 引入,后端修改地址之后,前端没有对应修改。 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../modules/system/backup/components/BackupListItem.vue | 2 +- ui/console-src/modules/system/backup/tabs/Restore.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/console-src/modules/system/backup/components/BackupListItem.vue b/ui/console-src/modules/system/backup/components/BackupListItem.vue index 3117628ed..41fc87f95 100644 --- a/ui/console-src/modules/system/backup/components/BackupListItem.vue +++ b/ui/console-src/modules/system/backup/components/BackupListItem.vue @@ -82,7 +82,7 @@ const getFailureMessage = computed(() => { function handleDownload() { window.open( - `/apis/api.console.migration.halo.run/v1alpha1/backups/${props.backup.metadata.name}/files/${props.backup.status?.filename}`, + `/apis/console.api.migration.halo.run/v1alpha1/backups/${props.backup.metadata.name}/files/${props.backup.status?.filename}`, "_blank" ); } diff --git a/ui/console-src/modules/system/backup/tabs/Restore.vue b/ui/console-src/modules/system/backup/tabs/Restore.vue index ba8a580fc..6a0f940c7 100644 --- a/ui/console-src/modules/system/backup/tabs/Restore.vue +++ b/ui/console-src/modules/system/backup/tabs/Restore.vue @@ -139,7 +139,7 @@ useQuery({ maxNumberOfFiles: 1, allowedFileTypes: ['.zip'], }" - endpoint="/apis/api.console.migration.halo.run/v1alpha1/restorations" + endpoint="/apis/console.api.migration.halo.run/v1alpha1/restorations" width="100%" @uploaded="onProcessCompleted" />