From 1eb2350de44476b6c67263293247db358bd2e4f0 Mon Sep 17 00:00:00 2001 From: tangly Date: Sun, 13 Nov 2022 19:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=86=8Curl=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 12 ------------ 1 file changed, 12 deletions(-) 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)