https://www.jb51.net/article/262435.htm
使用链接里的方法一后,出现以下报错 :类型“typeof import("d:/threeDemo/three-demo/node_modules/vue/dist/vue")”的参数不能赋给类型“Component<any, any, any, ComputedOptions, MethodOptions>”的参数
.d.ts文件做以下修改
declare module "*.vue" {
import Vue from 'vue'
import {defineComponent} from 'vue'
const Component:ReturnType<typeof defineComponent>
export default Component
}