|
|
@@ -22,7 +22,7 @@ export async function request<T = any>(url: string, options?: RequestInit): Prom
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
- const baseUrl = import.meta.env.VITE_API_BASE || '/api'
|
|
|
+ const baseUrl = import.meta.env.VITE_API_BASE || '/dgapi'
|
|
|
const res = await fetch(`${baseUrl}${url}`, {
|
|
|
...options,
|
|
|
headers: { ...headers, ...(options?.headers as Record<string, string> || {}) },
|