admin.xpcool.com/apps/web-tdesign/.env.development
夏犀麟 f8463e9f84 feat(other): 生产全量请求/响应加密拦截器
- crypto.ts 增 encryptPayload/decryptPayload(整体加密 + 会话密钥响应解密)
- request.ts 增 installCryptoInterceptors:请求整体加密、响应解密最先注册,
  requestClient 与 baseRequestClient 均生效,public-key 豁免
- auth/system 全量模式下直接提交明文密码由拦截器整体加密
- .env.production 开 VITE_GLOB_API_ENCRYPT=true(开发 false 保持仅密码加密)
2026-08-28 00:17:55 +08:00

20 lines
563 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.

# 端口号
VITE_PORT=20100
VITE_BASE=/
# 接口地址(空:请求路径直接写后端完整路径,由 vite 代理转发)
VITE_GLOB_API_URL=
# 是否开启 Nitro Mock服务true 为开启false 为关闭
VITE_NITRO_MOCK=false
# 是否打开 devtoolstrue 为打开false 为关闭
VITE_DEVTOOLS=false
# 是否注入全局loading
VITE_INJECT_APP_LOADING=true
# 是否启用全量请求/响应加密(生产 true所有接口 body/响应整体加密public-key 豁免;开发 false仅加密密码字段
VITE_GLOB_API_ENCRYPT=false