mirror of https://github.com/halo-dev/halo
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
parent
d9bc8cfd03
commit
487b0d343c
|
@ -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"
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue