docs(avatar): set production H5 domain
This commit is contained in:
@@ -9,8 +9,8 @@ interface ApiClient {
|
||||
|
||||
// API 基址:优先级 window.__APP_CONFIG__.apiBase > 环境变量 > 默认 '/api'
|
||||
// - 开发/Vite 代理:'/api'(由 vite.config 代理到后端 :8000)
|
||||
// - web-view 内(混合架构):需配置为后端公网地址,例如 'https://geo.99hui.com/api'
|
||||
// - 同域部署的构建产物:可保持 '/api'
|
||||
// - digital.99hui.com 同域部署:保持 '/api'
|
||||
// - 仅跨域部署时配置后端公网地址
|
||||
function resolveBaseURL(): string {
|
||||
const cfg = (window as any).__APP_CONFIG__
|
||||
if (cfg && cfg.apiBase) return cfg.apiBase as string
|
||||
|
||||
Reference in New Issue
Block a user