This commit is contained in:
tangly1024
2023-07-30 11:52:14 +08:00
parent 1353acf8c7
commit d1dfd32af2
11 changed files with 37 additions and 14 deletions

View File

@@ -24,6 +24,7 @@ import SearchInput from './components/SearchInput'
import { Transition } from '@headlessui/react'
import { Style } from './style'
import replaceSearchResult from '@/components/Mark'
import CommonHead from '@/components/CommonHead'
/**
* 基础布局
@@ -32,7 +33,7 @@ import replaceSearchResult from '@/components/Mark'
* @returns
*/
const LayoutBase = props => {
const { children, slotTop } = props
const { children, slotTop, meta } = props
const { onLoading } = useGlobal()
if (isBrowser()) {
@@ -40,6 +41,8 @@ const LayoutBase = props => {
}
return (
<div id='theme-simple' className='min-h-screen flex flex-col dark:text-gray-300 bg-white dark:bg-black'>
{/* SEO相关 */}
<CommonHead meta={meta}/>
<Style/>
{CONFIG.TOP_BAR && <TopBar {...props} />}