import { create } from "zustand" import { API_BASE_URL } from "@/lib/api" // ==================== 应用配置 ==================== // 后端地址等运行时配置统一从 store 读取,初始值来自 import.meta.env(见 lib/api.ts) type AppState = { apiUrl: string } export const useAppStore = create()(() => ({ apiUrl: API_BASE_URL }))