wms_mp_weixin/.env.development
2026-09-28 18:01:01 +08:00

16 lines
886 B
Plaintext
Raw Permalink 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.

# 开发环境配置
# uni-app(Vite)会自动按 mode 加载本文件,仅 VITE_ 前缀的变量会注入客户端
# 通过 import.meta.env.VITE_APP_BASE_API 读取
# 接口根地址(与 new3 Web 管理端开发环境指向同一后端,便于对照联调)
# 注意:小程序真机与线上由微信服务端校验域名白名单且必须 HTTPS,
# 本地联调依赖 manifest.json → mp-weixin.setting.urlCheck = false(仅影响开发者工具)
VITE_APP_BASE_API = 'http://192.168.11.56:6060/'
# 请求头 platform:后端 /system 网关会校验,非白名单值直接返回 HTTP 400(响应体为空)
# 实测白名单:web / app / wx / miniProgram(**大小写不敏感**,mp-weixin / h5 / mp / mobile 等被拒)
VITE_APP_PLATFORM = 'miniprogram'
# 请求头 project:后端同样校验(实测白名单:all / wms)
VITE_APP_PROJECT = 'all'