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:
parent
d108d2c693
commit
15019206c8
|
|
@ -172,8 +172,8 @@ export const contractService = {
|
||||||
* 返回下载 URL,前端直接打开进行下载
|
* 返回下载 URL,前端直接打开进行下载
|
||||||
*/
|
*/
|
||||||
getDownloadUrl(orderNo: string): string {
|
getDownloadUrl(orderNo: string): string {
|
||||||
// 获取 API 基础 URL
|
// 获取 API 基础 URL(与 .env.production 中的变量名一致)
|
||||||
const baseUrl = process.env.NEXT_PUBLIC_API_URL || '';
|
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || '';
|
||||||
return `${baseUrl}${API_ENDPOINTS.CONTRACTS.DOWNLOAD(orderNo)}`;
|
return `${baseUrl}${API_ENDPOINTS.CONTRACTS.DOWNLOAD(orderNo)}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue