Commit 8820af0c authored by XieZhiXiong's avatar XieZhiXiong

chore: 请求头添加 site key

parent 4ce78573
......@@ -5,6 +5,7 @@ import { history } from 'umi'
import { message } from 'antd'
import { getAuth, removeAuth, removeRouters } from './auth';
import { isDev } from '@/constants';
import { GlobalConfig } from '@/global/config';
export type CtlType = 'none' | 'message'
// 根前缀请求路径
......@@ -41,7 +42,8 @@ const defaultHeaders = {
'Content-Type': 'Application/json',
'token': '21954519911775ff2c65fa5887b9b11b',
'environment': '1',
'source': '99'
'source': '99',
site: GlobalConfig.global.siteInfo.id.toString(),
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment