update:接入cid用户信息

This commit is contained in:
2025-11-04 12:03:33 +08:00
parent 6b0fee8736
commit 8431e28f02

View File

@@ -2,6 +2,8 @@ import axios from 'axios';
import { ElMessage } from 'element-plus';
const env = import.meta.env;
const w: any = window;
const $wujie: any = w.$wujie;
const service = axios.create({
baseURL: env.VITE_API_BASE_URL,
@@ -13,9 +15,9 @@ const service = axios.create({
service.interceptors.request.use(
(config) => {
// TODO 待接入CID用户数据
config.headers['userId'] = '198023476487';
config.headers['tenantId'] = '1979091834410176514';
config.headers['token'] = $wujie?.props?.TOKEN || '';
config.headers['userId'] = $wujie?.props?.USER_ID || '';
config.headers['tenantId'] = $wujie?.props?.TENANT_ID || '';
return config;
},
(error) => {