diff --git a/pages/_app.js b/pages/_app.js index 57c4047a..ed0c8f76 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -17,8 +17,6 @@ import dynamic from 'next/dynamic' // 自定义样式css和js引入 import ExternalScript from '@/components/ExternalScript' -import CommonHead from '@/components/CommonHead' - // 各种扩展插件 动画等 const ExternalPlugins = dynamic(() => import('@/components/ExternalPlugins')) @@ -26,11 +24,9 @@ const MyApp = ({ Component, pageProps }) => { useEffect(() => { AOS.init() }, []) - const { meta } = pageProps return ( - diff --git a/themes/example/index.js b/themes/example/index.js index 8dffec78..0772f7fd 100644 --- a/themes/example/index.js +++ b/themes/example/index.js @@ -26,6 +26,7 @@ import TagItem from './components/TagItem' import { useRouter } from 'next/router' import { Transition } from '@headlessui/react' import { Style } from './style' +import CommonHead from '@/components/CommonHead' /** * 基础布局框架 @@ -35,7 +36,7 @@ import { Style } from './style' * @constructor */ const LayoutBase = props => { - const { children, slotTop } = props + const { children, slotTop, meta } = props const { onLoading } = useGlobal() // 增加一个状态以触发 Transition 组件的动画 @@ -48,6 +49,10 @@ const LayoutBase = props => { return (
+ + {/* SEO信息 */} + +