diff --git a/components/NotionPage.js b/components/NotionPage.js index 8b54e085..0ebd1951 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -92,18 +92,6 @@ const NotionPage = ({ post }) => { (zoomRef.current).attach(imgList[i]) } } - - // 相册中的url替换成可点击 - const cards = document.getElementsByClassName('notion-collection-card') - for (const e of cards) { - e.removeAttribute('href') - const links = e.querySelectorAll('.notion-link') - if (links && links.length > 0) { - for (const l of links) { - l.parentElement.innerHTML = `${l.innerText}` - } - } - } } }, 800)