diff --git a/src/layout/compatible/navbar/index.jsx b/src/layout/compatible/navbar/index.jsx index 4d7a6b4..64ece52 100644 --- a/src/layout/compatible/navbar/index.jsx +++ b/src/layout/compatible/navbar/index.jsx @@ -6,6 +6,7 @@ import Fullscreen from '../../components/fullscreen' import Language from '../../components/language' import Avatar from '../../components/avatar' import { HamburgerOutlined } from '@/components/icon' +import { useSite } from '@site' import { getElement } from '@site//utils/dom' import { useConfigInject } from '@site/utils/extend' import useStyle from './style' @@ -30,6 +31,7 @@ export default defineComponent({ setup (props, { emit, attrs }) { const { prefixCls } = useConfigInject('pro-layout-navbar', props) const [wrapSSR, hashId] = useStyle(prefixCls) + const $site = useSite() const popupContainer = ref(null) @@ -53,7 +55,9 @@ export default defineComponent({
- + {$site.screen.gt.xs ? ( + + ) : null}
diff --git a/src/views/Home.jsx b/src/views/Home.jsx index e2279b4..bef251e 100644 --- a/src/views/Home.jsx +++ b/src/views/Home.jsx @@ -152,7 +152,7 @@ export default defineComponent({ ]), extra: ({ pageData }) => ( - + {pageData.length} Cole