35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
|
|
/// <reference types="vite/client" />
|
|||
|
|
/// <reference types="vite-svg-loader" />
|
|||
|
|
|
|||
|
|
declare module '*.vue' {
|
|||
|
|
import type { DefineComponent } from 'vue'
|
|||
|
|
|
|||
|
|
const component: DefineComponent<{}, {}, any>
|
|||
|
|
export default component
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
interface ImportMetaEnv {
|
|||
|
|
/** 网站标题,应用名称 */
|
|||
|
|
readonly VITE_APP_TITLE: string
|
|||
|
|
/** 服务端口号 */
|
|||
|
|
readonly VITE_SERVER_PORT: string
|
|||
|
|
/** 后台接口地址 */
|
|||
|
|
readonly VITE_SERVER_BASEURL: string
|
|||
|
|
/** 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
|
|||
|
|
// 更多环境变量...
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
interface ImportMeta {
|
|||
|
|
readonly env: ImportMetaEnv
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
declare const __VITE_APP_PROXY__: 'true' | 'false'
|
|||
|
|
declare const __UNI_PLATFORM__: 'app' | 'h5' | 'mp-alipay' | 'mp-baidu' | 'mp-kuaishou' | 'mp-lark' | 'mp-qq' | 'mp-tiktok' | 'mp-weixin' | 'mp-xiaochengxu'
|