This commit is contained in:
Donald Zou
2025-08-17 17:24:29 +08:00
parent 2f860772d2
commit cc29091116
39 changed files with 49 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
<script setup>
import dayjs from "dayjs";
import {computed, ref} from "vue";
import {fetchGet, fetchPost} from "@/utilities/fetch.js";
import {fetchGet, fetchPost, getUrl} from "@/utilities/fetch.js";
import {useRoute} from "vue-router";
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
import LocaleText from "@/components/text/localeText.vue";
@@ -51,7 +51,7 @@ const downloadBackup = () => {
backupFileName: props.b.filename
}, (res) => {
if (res.status){
window.open(`/fileDownload?file=${res.data}`, '_blank')
window.open(getUrl(`/fileDownload?file=${res.data}`), '_blank')
}
})
}

View File

@@ -13,7 +13,7 @@ const getHeaders = () => {
return headers
}
const getUrl = (url) => {
export const getUrl = (url) => {
const store = DashboardConfigurationStore();
const apiKey = store.getActiveCrossServer();
if (apiKey){