fix(admin-web): 修复合同下载URL环境变量名错误

使用 NEXT_PUBLIC_API_BASE_URL 替代 NEXT_PUBLIC_API_URL,
与 .env.production 配置保持一致。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-05 23:37:46 -08:00
parent d108d2c693
commit 15019206c8
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ export const contractService = {
* URL
*/
getDownloadUrl(orderNo: string): string {
// 获取 API 基础 URL
const baseUrl = process.env.NEXT_PUBLIC_API_URL || '';
// 获取 API 基础 URL(与 .env.production 中的变量名一致)
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || '';
return `${baseUrl}${API_ENDPOINTS.CONTRACTS.DOWNLOAD(orderNo)}`;
},