App API 基址改为 VITE_API_BASE 可配置 #101

Closed
opened 2026-11-05 10:58:34 +08:00 by Lijianping · 0 comments
Collaborator

目标

App H5/真机可通过环境变量配置 API 基址,避免写死 /jeecg-boot。目标仓:app

范围

  • src/api/base.ts、http.ts、upload.ts
  • src/env.d.ts
  • .env.example / .env.development / .env.production
  • README.md(API 基址说明)

不做

  • 不改地图 / 首页角标 / manifest / unpackage
  • 不改 frontend / backend / gis-cs

验收

  • API_BASE 来自 VITE_API_BASE,缺省 /jeecg-boot
  • 上传与静态资源 URL 拼装兼容绝对 BASE
  • npm run type-check 通过
  • 无真实密钥入库

相关文档

  • 无契约变更;README 补充环境变量说明
## 目标 App H5/真机可通过环境变量配置 API 基址,避免写死 `/jeecg-boot`。目标仓:app ## 范围 - `src/api/base.ts`、`http.ts`、`upload.ts` - `src/env.d.ts` - `.env.example` / `.env.development` / `.env.production` - `README.md`(API 基址说明) ## 不做 - 不改地图 / 首页角标 / manifest / unpackage - 不改 frontend / backend / gis-cs ## 验收 - [ ] `API_BASE` 来自 `VITE_API_BASE`,缺省 `/jeecg-boot` - [ ] 上传与静态资源 URL 拼装兼容绝对 BASE - [ ] `npm run type-check` 通过 - [ ] 无真实密钥入库 ## 相关文档 - 无契约变更;README 补充环境变量说明
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jiaoce/xm_txys2_app#101
No description provided.