浏览代码

use useServerSeoMeta

Olivier Massot 1 年之前
父节点
当前提交
f9fe394227
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      .eslintrc.cjs
  2. 1 1
      components/Common/Meta.vue

+ 1 - 0
.eslintrc.cjs

@@ -47,6 +47,7 @@ module.exports = {
     useLayoutStore: 'readonly',
     useClientDevice: 'readonly',
     useSeoMeta: 'readonly',
+    useServerSeoMeta: 'readonly',
     onNuxtReady: 'readonly',
     useLocaleHead: 'readonly',
     useHead: 'readonly',

+ 1 - 1
components/Common/Meta.vue

@@ -22,7 +22,7 @@ const props = defineProps({
   },
 })
 
-definePageMeta({
+useServerSeoMeta({
   title: props.title,
   ogTitle: props.title,
   twitterTitle: props.title,