23 lines
841 B
TypeScript
23 lines
841 B
TypeScript
/// <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
|
||
}
|