提供独立路径的国内PDA测试H5部署

This commit is contained in:
2026-09-29 20:57:38 +08:00
parent 68357a4766
commit a031a37c77
10 changed files with 179 additions and 2 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
const configuredApiRoot = import.meta.env.VITE_API_BASE_URL || ''
let selectedApiRoot = configuredApiRoot || '/api'
let selectedApiRoot = ''
// #ifndef H5
selectedApiRoot = import.meta.env.VITE_API_BASE_URL || '/api'
// #endif
// H5 必须请求同源地址,由 Vite 开发服务器代理到国内 Gateway,避免浏览器 CORS。
// 前缀不能使用 /api,否则会截获本项目 api/ 目录下的前端模块请求。