/// /// declare module '*.vue' { import type { DefineComponent } from 'vue' const component: DefineComponent export default component } interface ImportMetaEnv { readonly VITE_API_BASE_URL: string // 更多环境变量可以在这里添加... } interface ImportMeta { readonly env: ImportMetaEnv } interface Window { // 可以扩展 window 类型 }