refactor: 项目优化
This commit is contained in:
8
src/env.d.ts
vendored
8
src/env.d.ts
vendored
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user