tsconfig.json
@@ -24,11 +24,11 @@ "@/*": ["src/*"] }, "types": [ "@intlify/unplugin-vue-i18n/types", "vite/client", "element-plus/global", "@types/qrcode", "vite-plugin-svg-icons/client" // "@intlify/unplugin-vue-i18n/types", "vite/client" // "element-plus/global", // "@types/qrcode", // "vite-plugin-svg-icons/client" ], "outDir": "target", // 请保留这个属性,防止tsconfig.json文件报错 "typeRoots": ["./node_modules/@types/", "./types"]