feat:修改多环境变量配置和添加智能提示

This commit is contained in:
有来技术
2021-11-16 01:05:20 +00:00
committed by Gitee
parent 56f3c5a792
commit 225fdd0175
5 changed files with 44 additions and 28 deletions

8
src/env.d.ts vendored
View File

@@ -6,3 +6,11 @@ declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}
// 环境变量智能提示
interface ImportMetaEnv {
VITE_APP_TITLE: string,
VITE_APP_PORT: string,
VITE_APP_BASE_API: string
}