env.d.ts 253 B

1234567891011
  1. /// <reference types="vite/client" />
  2. interface ImportMeta {
  3. readonly env: ImportMetaEnv
  4. }
  5. // 精确扩展 ImportMetaEnv
  6. interface ImportMetaEnv {
  7. readonly VITE_API_BASE: string // 请求路径
  8. readonly VITE_CRYPTO_KEY: string // 加密秘钥
  9. }