fix: correct API endpoints related to backup issues (#6506)

#### 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
```
pull/6428/head
Ryan Wang 2024-08-23 17:08:58 +08:00 committed by GitHub
parent d9bc8cfd03
commit 487b0d343c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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"
);
}

View File

@ -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"
/>