Преглед изворни кода

fix(unhead): resolve v3 breaking changes

unknown пре 5 часа
родитељ
комит
b87346aeba
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/main.ts
  2. 1 1
      src/pages/Index.vue

+ 1 - 1
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";

+ 1 - 1
src/pages/Index.vue

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