feat: 按配置获取主体信息

This commit is contained in:
duanshuwen
2025-09-20 19:26:16 +08:00
parent 4cdff7a594
commit 55fd7c7ee6
11 changed files with 155 additions and 142 deletions

View File

@@ -1,10 +1,13 @@
import { goLogin } from "../../hooks/useGoLogin";
import { BASE_URL } from "./baseUrl";
import { getCurrentConfig } from "@/constant/base";
const clientId = getCurrentConfig().clientId;
const defaultConfig = {
header: {
Authorization: "", // 可在此动态设置 token
"Content-Type": "application/json",
clientId: clientId,
},
};