chore: config base url

This commit is contained in:
jialin
2025-11-13 12:22:16 +08:00
parent 03963b736a
commit f963b3a000
16 changed files with 34 additions and 59 deletions
+4 -1
View File
@@ -1,3 +1,4 @@
import { GPUSTACK_API_BASE_URL } from '@/config/settings';
import { downloadFile } from '@/utils/download-stream';
import { request } from '@umijs/max';
import { message } from 'antd';
@@ -24,7 +25,9 @@ export async function downloadWorkerPrivateKey({
name?: string;
}) {
try {
const res = await fetch(`/v1${WORKERS_API}/${id}/privatekey`);
const res = await fetch(
`/${GPUSTACK_API_BASE_URL}${WORKERS_API}/${id}/privatekey`
);
// header
const contentDispostion = res.headers.get('content-Disposition');
const filename =