feat(projects): 添加环境文件env对应的类型

This commit is contained in:
Soybean
2021-09-22 10:42:16 +08:00
parent e1dc0f298d
commit 4f05095336
5 changed files with 19 additions and 7 deletions

12
src/typings/env.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
interface ImportMetaEnv {
/** 项目标题 */
VITE_APP_TITLE: string;
/** 项目标题(文本) */
VITE_APP_TITLE_LABEL: string;
/** 项目基本地址 */
VITE_BASE_URL: string;
/** 网路请求环境类型 */
VITE_HTTP_ENV: string;
/** 网路请求地址 */
VITE_HTTP_URL: string;
}