Ver código fonte

fix(unhead): use createUnhead usage and innerHTML for scripts

unknown 3 horas atrás
pai
commit
bc4841b5f8
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      src/main.ts
  2. 1 1
      src/pages/Index.vue

+ 1 - 1
src/main.ts

@@ -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);
 app.use(i18n);

+ 1 - 1
src/pages/Index.vue

@@ -35,7 +35,7 @@ useHead({
   script: [
     {
       type: 'application/ld+json' as any,
-      children: JSON.stringify({
+      innerHTML: JSON.stringify({
         "@context": "https://schema.org",
         "@type": "LocalBusiness",
         "name": "Radionica 3D",