{ "compilerOptions": { "target": "ES6", "module": "ESNext", "baseUrl": ".", "paths": { "@/*": ["src/*"] // 适配 uni-app 的 @ 路径别名(关键,避免导入路径报错) }, "jsx": "preserve", "allowJs": true }, "include": [ "src/**/*", "pages.json", "uni.pages.json" // 包含 uni-app 配置文件,让 Vetur 识别页面结构 ], "exclude": [ "node_modules", "dist", "unpackage" // 排除编译产物和依赖目录 ] }