调整vite/client的加载方式

This commit is contained in:
抠脚本人
2023-07-28 11:24:07 +08:00
parent 74f0e4764e
commit 9d18715e90
2 changed files with 1 additions and 3 deletions

View File

@@ -20,9 +20,6 @@
"dom",
"esnext"
],
"types": [
"vite/client"
],
"typeRoots": [
"./node_modules/@types/",
"./types"

1
types/modules.d.ts vendored
View File

@@ -1,3 +1,4 @@
/// <reference types="vite/client" />
declare module '*.vue' {
import { DefineComponent } from 'vue';
const Component: DefineComponent<{}, {}, any>;