packServer/miniprogram/.env.example
liufumingren 8f1a8b7ddb feat(miniprogram): 新增 uni-app + Vue3 + TS 微信小程序
- 登录:微信一键登录(code2Session)+ 账号登录双 tab;个人中心为整页登录,其它页走抽屉
- 协议:登录前必须阅读并同意,版本号随登录上报落库
- 不强制登录:启动不弹窗,点功能或遇到 401 才提示(符合小程序审核)
- 页面:首页统计 / 扫码记录 / 个人中心;H5 预览端口 7304

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-21 00:47:16 +08:00

9 lines
560 B
Plaintext
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.

# 后端接口地址(小程序没有同源代理,必须是完整地址)
# 本地联调:复制成 .env.development(已被根 .gitignore 忽略)
# 真机/发布:必须是 https 域名,并在小程序后台「开发设置 → 服务器域名」里配好 request 合法域名
VITE_API_BASE=http://127.0.0.1:7300
# 仅本地联调用:H5 / 开发者工具里拿不到微信 code 时的 mock openid
# 需要后端同时允许 mock(未配置 WX_MP_APPID 时本地默认允许,生产需显式 WX_MP_MOCK=true)
# VITE_WX_MOCK_OPENID=demo-openid