diff --git a/themes/fukasawa/components/Catalog.js b/themes/fukasawa/components/Catalog.js index 0e1cde78..4bee0c3e 100644 --- a/themes/fukasawa/components/Catalog.js +++ b/themes/fukasawa/components/Catalog.js @@ -1,7 +1,7 @@ -import { useEffect, useRef, useState } from 'react' +import { useGlobal } from '@/lib/global' import throttle from 'lodash.throttle' import { uuidToId } from 'notion-utils' -import { useGlobal } from '@/lib/global' +import { useEffect, useRef, useState } from 'react' /** * 目录导航组件 @@ -58,29 +58,37 @@ const Catalog = ({ toc }) => { if (!toc || toc?.length < 1) { return <>> } - return