feat: 添加合规
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getApiBase } from '../utils/apiConfig';
|
||||
// src/services/financialService.js
|
||||
/**
|
||||
* 完整的财务数据服务层
|
||||
@@ -7,7 +8,7 @@
|
||||
import { logger } from '../utils/logger';
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const API_BASE_URL = isProduction ? "" : process.env.REACT_APP_API_URL;
|
||||
const API_BASE_URL = getApiBase();
|
||||
|
||||
const apiRequest = async (url, options = {}) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user