refactor(projects): 细节优化

This commit is contained in:
Soybean
2022-04-27 22:27:46 +08:00
parent e899914426
commit c275f2632c
10 changed files with 87 additions and 91 deletions

10
src/typings/env.d.ts vendored
View File

@ -6,6 +6,16 @@
*/
type EnvType = 'dev' | 'test' | 'prod';
/**
* env环境配置
*/
interface EnvConfig {
/** 请求地址 */
url: string;
/** 代理地址 */
proxy: string;
}
interface ImportMetaEnv {
/** 项目基本地址 */
readonly VITE_BASE_URL: string;