feat: 添加合规

This commit is contained in:
zdl
2025-10-20 21:25:33 +08:00
parent d695f8ff7b
commit 6c96299b8f
42 changed files with 7118 additions and 289 deletions

View File

@@ -2,13 +2,14 @@
// Axios 全局配置和拦截器
import axios from 'axios';
import { getApiBase } from './apiConfig';
import { logger } from './logger';
// 判断当前是否是生产环境
const isProduction = process.env.NODE_ENV === 'production';
// 配置基础 URL
const API_BASE_URL = isProduction ? '' : process.env.REACT_APP_API_URL;
const API_BASE_URL = getApiBase();
// 配置 axios 默认值
axios.defaults.baseURL = API_BASE_URL;