只需在vite的vite-env.d.ts中加入以下代码即可
declare module '*.vue' {
import { Component } from 'vue'; const component: Component; export default component;
}
只需在vite的vite-env.d.ts中加入以下代码即可
declare module '*.vue' {
import { Component } from 'vue'; const component: Component; export default component;
}