From 2e28688ce9f2f031d078f0722e3bc53750038844 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 15 Apr 2026 20:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E6=8C=89=E9=9C=80=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 +--- vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 7237b02d..5dd6bb69 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,8 +6,6 @@ import * as Sentry from "@sentry/vue"; import { createApp, defineCustomElement } from "vue"; import { createVuetify } from "vuetify"; -import * as components from "vuetify/components"; -import * as directives from "vuetify/directives"; import App from "./App.vue"; import TLink from "./components/web/t-link.vue"; @@ -19,7 +17,7 @@ import "vuetify/styles"; import "./assets/index.scss"; const app = createApp(App); -const vuetify = createVuetify({ components, directives }); +const vuetify = createVuetify(); customElements.define("t-link", defineCustomElement(TLink)); diff --git a/vite.config.ts b/vite.config.ts index a5aefb02..2d8c2e86 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,6 @@ /** * vite 配置文件 - * @since Beta v0.9.9 + * @since Beta v0.10.1 */ import { sentryVitePlugin } from "@sentry/vite-plugin"; @@ -17,7 +17,7 @@ export default defineConfig({ define: { proEnv: process.env }, plugins: [ vue(), - vuetify(), + vuetify({ styles: true }), VueDevtools(), sentryVitePlugin({ org: "teyvat-guide",