2023-12-21 15:26:15 +08:00
|
|
|
/// <reference types="vite/client" />
|
2023-12-23 12:04:31 +08:00
|
|
|
/// <reference types="vite-svg-loader" />
|
2023-12-21 15:26:15 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2023-12-23 12:04:31 +08:00
|
|
|
|
|
|
|
interface ImportMetaEnv {
|
2024-05-03 14:26:00 +08:00
|
|
|
/** 网站标题,应用名称 */
|
2023-12-23 12:04:31 +08:00
|
|
|
readonly VITE_APP_TITLE: string
|
2024-05-03 14:26:00 +08:00
|
|
|
/** 服务端口号 */
|
2023-12-23 12:04:31 +08:00
|
|
|
readonly VITE_SERVER_PORT: string
|
2024-05-03 14:26:00 +08:00
|
|
|
/** 后台接口地址 */
|
2023-12-23 12:10:45 +08:00
|
|
|
readonly VITE_SERVER_BASEURL: string
|
2024-05-18 17:24:21 +08:00
|
|
|
/** H5是否需要代理 */
|
|
|
|
readonly VITE_APP_PROXY: boolean
|
2024-05-03 14:26:00 +08:00
|
|
|
/** 上传图片地址 */
|
|
|
|
readonly VITE_UPLOAD_BASEURL: string
|
|
|
|
/** 是否清除console */
|
2023-12-23 12:10:45 +08:00
|
|
|
readonly VITE_DELETE_CONSOLE: string
|
2023-12-23 12:04:31 +08:00
|
|
|
// 更多环境变量...
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ImportMeta {
|
|
|
|
readonly env: ImportMetaEnv
|
|
|
|
}
|