解决办法: env.d.ts 新增代码片段: 登录后复制 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; } 1.2.3.4.5.6. 原创作者: xutongbao 转载于: https://blog.51cto.com/xutongbao/11457309