From 47029ce802ef6702fb8bdd3e7ba3af350cf7814e Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 25 Mar 2026 18:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20=E6=9B=B4=E6=96=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89=E4=BB=A5=E8=A7=A3=E5=86=B3=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E5=BA=93=E5=AF=BC=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vite-env.d.ts | 35 ++++++++++++++++++++++++++++++++++- tsconfig.json | 1 - 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 6a390830..06f36ed8 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1,6 +1,6 @@ /** * 全局类型定义文件 - * @since Beta v0.7.6 + * @since Beta v0.9.9 */ /** @@ -77,3 +77,36 @@ declare module "echarts/features.js" { declare module "echarts/renderers.js" { export * from "echarts/types/src/export/renderers.d.ts"; } + +/** + * 解决极验验证 CDN 脚本导入问题 + * @since Beta v0.9.9 + */ +declare module "https://static.geetest.com/static/js/gt.0.4.9.js" { + export {}; +} +declare module "https://static.geetest.com/v4/gt4.js" { + export {}; +} + +/** + * 解决 Swiper CSS 导入问题 + * @since Beta v0.9.9 + */ +declare module "swiper/css" { + export {}; +} +declare module "swiper/css/pagination" { + export {}; +} +declare module "swiper/css/navigation" { + export {}; +} + +/** + * 解决 Vuetify 导入问题 + * @since Beta v0.9.9 + */ +declare module "vuetify/styles" { + export {}; +} diff --git a/tsconfig.json b/tsconfig.json index 0f00cc71..0a838530 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,6 @@ "isolatedModules": true, "lib": ["DOM", "ESNext"], "skipLibCheck": true, - "noUncheckedSideEffectImports": false, "types": ["vite/client", "node", "js-md5", "uuid"], "composite": true, "paths": {