refactor: 项目优化

This commit is contained in:
郝先瑞
2022-03-07 21:17:22 +08:00
parent 3a5399e7d5
commit 5420e8ed77
9 changed files with 25 additions and 20 deletions

8
src/env.d.ts vendored
View File

@@ -7,11 +7,13 @@ declare module '*.vue' {
export default component
}
// 环境变量智能提示
// 环境变量 TypeScript的智能提示
interface ImportMetaEnv {
NODE_ENV:string,
VITE_APP_TITLE: string,
VITE_APP_PORT: string,
VITE_APP_BASE_API: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}