👽️ migrate to vuetify4

This commit is contained in:
BTMuli
2026-02-25 19:13:58 +08:00
parent f42e6d4c8a
commit a4b4232671
16 changed files with 819 additions and 1369 deletions

View File

@@ -1,11 +1,13 @@
/**
* 应用入口
* @since Beta v0.9.2
* @since Beta v0.9.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";
@@ -17,6 +19,8 @@ import "vuetify/styles";
import "./assets/index.scss";
const app = createApp(App);
const vuetify = createVuetify({ components, directives });
customElements.define("t-link", defineCustomElement(TLink));
Sentry.init({
@@ -45,4 +49,4 @@ Sentry.init({
Sentry.setTag("commitHash", import.meta.env.VITE_COMMIT_HASH);
Sentry.setTag("buildTime", import.meta.env.VITE_BUILD_TIME);
app.use(router).use(store).use(createVuetify()).mount("#app");
app.use(router).use(store).use(vuetify).mount("#app");