Files
portal-mini-front/env.d.ts
T
2026-10-25 23:14:53 +08:00

32 lines
797 B
TypeScript

/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
declare module '*.scss' {
const css: Record<string, string>
export default css
}
interface ImportMetaEnv {
/** 应用标题 */
readonly VITE_APP_TITLE: string
/** 部署基础路径 */
readonly VITE_APP_BASE_URL: string
/** 接口前缀,本地开发经 Vite proxy 转发 */
readonly VITE_APP_BASE_API: string
/** 接口真实地址(仅 mock 关闭、未走代理时使用) */
readonly VITE_APP_API_URL: string
/** 是否启用本地 mock */
readonly VITE_USE_MOCK: string
/** 端口 */
readonly VITE_APP_PORT: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}