This commit is contained in:
2026-09-30 14:27:39 +08:00
parent 707711b3bd
commit 7ba6a24505
8 changed files with 45 additions and 19 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ let selectedApiRoot = ''
selectedApiRoot = import.meta.env.VITE_API_BASE_URL || '/api'
// #endif
// H5 必须请求同源地址,由 Vite 开发服务器代理到国内 Gateway,避免浏览器 CORS。
// H5 必须请求同源地址,由 Vite 开发服务器代理到统一 Gateway,避免浏览器 CORS。
// 前缀不能使用 /api,否则会截获本项目 api/ 目录下的前端模块请求。
// #ifdef H5
selectedApiRoot = import.meta.env.VITE_H5_API_BASE_URL || '/gateway-api'