diff --git a/components/NotionPage.js b/components/NotionPage.js index 0ebd1951..b4529f72 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -92,6 +92,12 @@ const NotionPage = ({ post }) => { (zoomRef.current).attach(imgList[i]) } } + + // 相册图片不允许点击 + const cards = document.getElementsByClassName('notion-collection-card') + for (const e of cards) { + e.removeAttribute('href') + } } }, 800)