Files
EasyCard/frontend_miniprogram/miniprogram/config/runtime.ts
陈子默 9605384edc feat: 搭建微信小程序展示端
- 初始化小程序工程配置与类型声明

- 增加首页、律所、律师列表、详情与历史页面

- 补充公共组件、运行时配置与示例素材
2026-03-20 12:44:31 +08:00

17 lines
590 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export type MiniProgramEnvVersion = 'develop' | 'trial' | 'release';
export const API_BASE_URL_OVERRIDE_KEY = 'api_base_url_override';
export interface TenantRuntimeConfig {
apiBaseUrlByEnv: Record<MiniProgramEnvVersion, string>;
}
// develop 环境允许本地联调trial/release 请替换为已备案且已配置到小程序后台“服务器域名”的 HTTPS 域名。
export const tenantRuntimeConfig: TenantRuntimeConfig = {
apiBaseUrlByEnv: {
develop: 'http://127.0.0.1:8112',
trial: 'https://trial-api.example.com',
release: 'https://api.example.com',
},
};