mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-15 21:03:29 +08:00
👽️ migrate to vuetify4
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user