wms_mp_weixin/src/env.d.ts
2026-09-19 17:59:41 +08:00

23 lines
841 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.

/// <reference types="vite/client" />
/** .env.[mode] 注入的环境变量(仅 VITE_ 前缀会被暴露给客户端) */
interface ImportMetaEnv {
/** 接口根地址,见 .env.development / .env.production */
readonly VITE_APP_BASE_API: string
/** 请求头 platform:后端网关校验(白名单 web / app / wx / miniProgram,大小写不敏感);本项目为 miniProgram */
readonly VITE_APP_PLATFORM: string
/** 请求头 project:后端网关切学校验,白名单 all / wms */
readonly VITE_APP_PROJECT: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare module '*.vue' {
import { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}