change defualt port

This commit is contained in:
2026-03-05 11:25:08 +08:00
parent c85598418d
commit 55b37cc611

View File

@@ -14,7 +14,7 @@ import type {
} from "../types"; } from "../types";
const API_BASE_URL = const API_BASE_URL =
import.meta.env.VITE_FRONT_API_BASE_URL?.trim() || "http://127.0.0.1:8001"; import.meta.env.VITE_FRONT_API_BASE_URL?.trim() || "http://127.0.0.1:8500";
async function fetchJson<T>(path: string, init?: RequestInit): Promise<T> { async function fetchJson<T>(path: string, init?: RequestInit): Promise<T> {
const response = await fetch(`${API_BASE_URL}${path}`, { const response = await fetch(`${API_BASE_URL}${path}`, {