diff --git a/components/NotionPage.js b/components/NotionPage.js index fd03fabc..9bf0c027 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -37,6 +37,8 @@ const NotionPage = ({ post }) => { React.useEffect(() => { addWatch4Dom() + }, []) + setTimeout(() => { // 将相册gallery下的图片加入放大功能 // const container = document?.getElementById('container') const imgList = document?.querySelectorAll('.notion-collection-card-cover img') @@ -50,7 +52,7 @@ const NotionPage = ({ post }) => { for (const e of cards) { e.removeAttribute('href') } - }) + }, 800) return