From 53448621cb6444a44c02b9309e1f47d78c820bd7 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 27 Apr 2026 15:54:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0Vue=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E6=96=87=E4=BB=B6=E4=BF=AE=E5=A4=8DTypeScrip?= =?UTF-8?q?t=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/env.d.ts | 7 +++++++ frontend/tsconfig.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 frontend/src/env.d.ts diff --git a/frontend/src/env.d.ts b/frontend/src/env.d.ts new file mode 100644 index 0000000..323c78a --- /dev/null +++ b/frontend/src/env.d.ts @@ -0,0 +1,7 @@ +/// + +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index bc7a940..352d2d4 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -19,5 +19,5 @@ "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] + "include": ["src", "src/env.d.ts"] }