Przeglądaj źródła

fix: resolve typescript errors with @unhead/vue v3

unknown 3 miesięcy temu
rodzic
commit
b6d2d08921
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 2 2
      src/main.ts
  2. 1 1
      src/pages/Index.vue

+ 2 - 2
src/main.ts

@@ -2,7 +2,7 @@ import { createApp } from "vue";
 import { createPinia } from "pinia";
 import { MotionPlugin } from "@vueuse/motion";
 import App from "./App.vue";
-import { createHead } from "@unhead/vue";
+import { createUnhead } from "@unhead/vue";
 import router from "./router";
 import i18n from "./i18n";
 import "./index.css";
@@ -16,7 +16,7 @@ window.addEventListener('vite:preloadError', () => {
 const app = createApp(App);
 
 app.use(createPinia());
-app.use(createHead());
+app.use(createUnhead());
 
 app.use(MotionPlugin);
 app.use(router);

+ 1 - 1
src/pages/Index.vue

@@ -34,7 +34,7 @@ useHead({
   ],
   script: [
     {
-      type: 'application/ld+json',
+      type: 'application/ld+json' as any,
       children: computed(() => JSON.stringify({
         "@context": "https://schema.org",
         "@type": "LocalBusiness",