fix: GIS H5 默认 API 改为同源相对路径 /jeecg-boot #13

Closed
opened 2026-11-03 09:16:00 +08:00 by Lijianping · 0 comments
Collaborator

目标

GIS C/S 浏览器版与 PC/App 一致,默认使用相对路径 /jeecg-boot,构建时不再写死局域网绝对地址。目标仓:gis-cs

范围

  • src/api/http.ts
  • src/views/LoginView.vue
  • .env / .env.example

不做

  • 不改 frontend/backend/app
  • 不改桌面 Electron DEFAULT_API 默认值逻辑(仍可由构建临时注入 / 登录页修改)

验收

  • 未设绝对 VITE_API_BASE 时,构建产物中默认 base 为 /jeecg-boot
  • 浏览器同源 + Nginx 反代 /jeecg-boot/ 可登录
  • Electron 仍可通过 initApiBase / 登录页使用绝对地址
  • npm run build 通过

相关文档

  • 工作区 docs/三端发布打包.md §7(工作区文档同步说明,不在本仓)
## 目标 GIS C/S 浏览器版与 PC/App 一致,默认使用相对路径 `/jeecg-boot`,构建时不再写死局域网绝对地址。目标仓:gis-cs ## 范围 - `src/api/http.ts` - `src/views/LoginView.vue` - `.env` / `.env.example` ## 不做 - 不改 frontend/backend/app - 不改桌面 Electron DEFAULT_API 默认值逻辑(仍可由构建临时注入 / 登录页修改) ## 验收 - [ ] 未设绝对 `VITE_API_BASE` 时,构建产物中默认 base 为 `/jeecg-boot` - [ ] 浏览器同源 + Nginx 反代 `/jeecg-boot/` 可登录 - [ ] Electron 仍可通过 initApiBase / 登录页使用绝对地址 - [ ] `npm run build` 通过 ## 相关文档 - 工作区 `docs/三端发布打包.md` §7(工作区文档同步说明,不在本仓)
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_gis#13
No description provided.