From 12babbdbca9ab705273bdc7503b08a4d0911a4d3 Mon Sep 17 00:00:00 2001 From: tangly Date: Sun, 13 Nov 2022 20:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=86=8C=E5=9B=BE=E7=89=87=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=B8=8D=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 6 ++++++ 1 file changed, 6 insertions(+) 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)