feat: 按配置获取主体信息
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user