From 6b372294d8b9e86a8c49c33d428717afa2637e21 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 6 May 2022 17:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=85=A7=E7=89=87=E9=9B=86=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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