jeecgBootUniapp/src/env.d.ts

36 lines
1.1 KiB
Vue
Raw Normal View History

2025-04-29 08:37:17 +00:00
/// <reference types="vite/client" />
/// <reference types="vite-svg-loader" />
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
}
interface ImportMetaEnv {
/** 网站标题,应用名称 */
readonly VITE_APP_TITLE: string
/** 服务端口号 */
readonly VITE_SERVER_PORT: string
/** 后台接口地址 */
2025-06-17 09:34:45 +00:00
readonly VITE_WEBAPP: string
/** 读取更新配置文件路径 by min */
readonly WEBAPP: string
2025-04-29 08:37:17 +00:00
/** H5是否需要代理 */
readonly VITE_APP_PROXY: 'true' | 'false'
/** H5是否需要代理需要的话有个前缀 */
readonly VITE_APP_PROXY_PREFIX: string // 一般是/api
/** 上传图片地址 */
readonly VITE_UPLOAD_BASEURL: string
/** 是否清除console */
readonly VITE_DELETE_CONSOLE: string
/** 是否开启mock */
readonly VITE_USE_MOCK: 'true' | 'false'
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}