项目根目录创建env.d.ts文件 添加以下内容 interface ImportMetaEnv { VITE_APP_TITLE: string // 更多环境变量... } 3. 4.axios配置