1
This commit is contained in:
19
src/env.d.ts
vendored
Normal file
19
src/env.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
declare global {
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APPID: string;
|
||||
readonly VITE_WEB_URL:string,
|
||||
// 更多环境变量...
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly envs: ImportMetaEnv
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user