not edit my computer

This commit is contained in:
2026-03-13 13:44:58 +08:00
parent 9f9813f01d
commit 691ef1c77d

View File

@@ -19,8 +19,7 @@ import type {
RuntimeAuthInfoResponse,
} from "../types";
const API_BASE_URL =
import.meta.env.VITE_FRONT_API_BASE_URL?.trim() || "http://127.0.0.1:8500";
const API_BASE_URL = import.meta.env.VITE_FRONT_API_BASE_URL?.trim() || "/";
export function joinApiUrl(baseUrl: string, path: string): string {
const normalizedPath = path.startsWith("/") ? path : `/${path}`;