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",